diff --git a/NEWS b/NEWS index e4b4e7304a5..f768895d5ad 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,7 @@ PHP NEWS - Fixed ext/mysqli to allocate less memory when fetching bound params of type (MEDIUM|LONG)BLOB/(MEDIUM|LONG)TEXT. (Andrey) - Fixed memory corruption in ImageTTFText() with 64bit systems. (Andrey) +- Fixed bug #33059 (crash when moving xml attribute set in dtd). (Ilia) - Fixed bug #33019 (socket errors cause memory leaks in php_strerror()). (jwozniak23 at poczta dot onet dot pl, Tony). - Fixed bug #32956 (mysql_bind_result() doesn't support MYSQL_TYPE_NULL). (Georg) diff --git a/ext/dom/element.c b/ext/dom/element.c index 1d29f91cc9d..9e23eee61a2 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); }