1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-13 13:17:36 +03:00

Fix memory leak in xmlParseSGMLCatalog

Found by Coverity.

https://bugzilla.redhat.com/show_bug.cgi?id=1938806
This commit is contained in:
David King 2021-07-14 14:14:34 +01:00 committed by Nick Wellnhofer
parent 2510f43cba
commit f0904f3266

View File

@ -2359,6 +2359,7 @@ xmlParseSGMLCatalog(xmlCatalogPtr catal, const xmlChar *value,
}
if (!IS_BLANK_CH(*cur)) {
/* error */
xmlFree(name);
break;
}
SKIP_BLANKS;