[php-src] master: Remove bogus entity reference cleanup code

From: Date: Tue, 30 Apr 2024 15:29:30 +0000
Subject: [php-src] master: Remove bogus entity reference cleanup code
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-128264@lists.php.net to get a copy of this message
Author: Niels Dossche (nielsdos) Date: 2024-04-30T17:29:19+02:00 Commit: https://github.com/php/php-src/commit/e5e8b193e0c05e10c07c50eb0629ad9a82a595f6 Raw diff: https://github.com/php/php-src/commit/e5e8b193e0c05e10c07c50eb0629ad9a82a595f6.diff Remove bogus entity reference cleanup code Changed paths: M ext/libxml/libxml.c Diff: diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 7d6856e49cb8..b249dc2358a4 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -331,14 +331,12 @@ PHP_LIBXML_API void php_libxml_node_free_list(xmlNodePtr node) node = curnode; switch (node->type) { /* Skip property freeing for the following types */ + case XML_ENTITY_REF_NODE: case XML_NOTATION_NODE: break; case XML_ENTITY_DECL: php_libxml_unlink_entity_decl((xmlEntityPtr) node); break; - case XML_ENTITY_REF_NODE: - php_libxml_node_free_list((xmlNodePtr) node->properties); - break; case XML_ATTRIBUTE_NODE: if ((node->doc != NULL) && (((xmlAttrPtr) node)->atype == XML_ATTRIBUTE_ID)) { xmlRemoveID(node->doc, (xmlAttrPtr) node);

« previous php.cvs (#128264) next »