Skip to content

Commit

Permalink
free nodes correctly to clear node proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Richards committed Dec 17, 2003
1 parent a841334 commit 094861d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/simplexml/simplexml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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:
Expand Down

0 comments on commit 094861d

Please sign in to comment.