]> granicus.if.org Git - php/commitdiff
Fixed bug #33059 (crash when moving xml attribute set in dtd).
authorIlia Alshanetsky <iliaa@php.net>
Thu, 19 May 2005 13:47:21 +0000 (13:47 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 19 May 2005 13:47:21 +0000 (13:47 +0000)
ext/dom/element.c

index 1d29f91cc9d3d929354a20594fb1a4eb5755d9fa..9e23eee61a262203d66be1e5c465d17d51d67d84 100644 (file)
@@ -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);
        }