From bb671b89286a5cd7924189bec0784ae5ab98de39 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 19 May 2005 13:47:47 +0000 Subject: [PATCH] MFH: Fixed bug #33059 (crash when moving xml attribute set in dtd). --- NEWS | 1 + ext/dom/element.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e4b4e7304a..f768895d5a 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 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); } -- 2.40.0