fix a memory leak in simplexml
commite53e9042d8409ae93102930c72809ea0824938d2
authorDaniel Sloof <goapsychadelic@gmail.com>
Thu, 5 Jun 2014 17:33:26 +0000 (5 10:33 -0700)
committerfacebook-github-bot <github@fb.com>
Thu, 5 Jun 2014 21:17:27 +0000 (5 14:17 -0700)
treecff5ccc32784fe0a278b28a85749bd7c509bdaa7
parent02bf5c68750ea14b4b188459010121a49396004c
fix a memory leak in simplexml

Summary: Oops, this one's on me. Since t_getiterator passes control over from the
sxe object to the iterator, we need to actually release sxe when our
iterator's destructor is called.

Fixes #2854.
Closes #2859

Reviewed By: @sgolemon

Differential Revision: D1366174

Pulled By: @JoelMarcey
hphp/runtime/ext/ext_simplexml.cpp