From: Ilia Alshanetsky Date: Thu, 19 May 2005 13:47:21 +0000 (+0000) Subject: Fixed bug #33059 (crash when moving xml attribute set in dtd). X-Git-Tag: php-5.0.1b1~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e117b6bad2dc67ea7493883bd20422a6192764bb;p=php Fixed bug #33059 (crash when moving xml attribute set in dtd). --- diff --git a/ext/dom/element.c b/ext/dom/element.c index 1d29f91cc9..9e23eee61a 100644 --- a/ext/dom/element.c +++ b/ext/dom/element.c @@ -298,7 +298,6 @@ PHP_FUNCTION(dom_element_remove_attribute) if (php_dom_object_get_data((xmlNodePtr) attrp) == NULL) { node_list_unlink(attrp->children TSRMLS_CC); xmlUnlinkNode((xmlNodePtr) attrp); - xmlFreeProp(attrp); } else { xmlUnlinkNode((xmlNodePtr) attrp); }