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

Fix commit "Memory leak in xmlFreeID (xmlreader.c)"

The recent commit "Memory leak in xmlFreeID (xmlreader.c)" introduced
a double-free.
This commit is contained in:
Nick Wellnhofer 2019-01-07 16:52:42 +01:00
parent 619534ef2e
commit 26828cb3a1

View File

@ -273,6 +273,7 @@ xmlTextReaderRemoveID(xmlDocPtr doc, xmlAttrPtr attr) {
return(-1);
}
id->name = attr->name;
attr->name = NULL;
id->attr = NULL;
return(0);
}