1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

xmlreader: Fix memory leak in xmlTextReaderFreeProp

Short-lived regression.
This commit is contained in:
Nick Wellnhofer 2024-03-17 15:05:42 +01:00
parent dc2a03d482
commit 1b4bf22c14

View File

@ -227,6 +227,8 @@ xmlTextReaderFreeProp(xmlTextReaderPtr reader, xmlAttrPtr cur) {
* Operating in streaming mode, attr is gonna disappear
*/
cur->id->attr = NULL;
if (cur->id->name != NULL)
DICT_FREE(cur->id->name);
cur->id->name = cur->name;
cur->name = NULL;
} else {