From: Rob Richards Date: Wed, 17 Dec 2003 10:28:29 +0000 (+0000) Subject: free nodes correctly to clear node proxies X-Git-Tag: php-5.0.0b3RC1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=094861db8c3d7f655b6fff3ac1eb7aa98b196878;p=php free nodes correctly to clear node proxies --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 86c8b0548c..29b5d2dbe6 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -480,7 +480,7 @@ static void sxe_prop_dim_delete(zval *object, zval *member, zend_bool elements, anext = attr->next; if (!xmlStrcmp(attr->name, Z_STRVAL_P(member))) { xmlUnlinkNode((xmlNodePtr) attr); - xmlFreeProp(attr); + php_libxml_node_free_resource((xmlNodePtr) attr TSRMLS_CC); } attr = anext; } @@ -495,7 +495,7 @@ static void sxe_prop_dim_delete(zval *object, zval *member, zend_bool elements, if (!xmlStrcmp(node->name, Z_STRVAL_P(member))) { xmlUnlinkNode(node); - xmlFreeNode(node); + php_libxml_node_free_resource(node TSRMLS_CC); } next_iter: