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

Fix memory leak in pattern error path

Found with libFuzzer and ASan.
This commit is contained in:
Nick Wellnhofer 2017-05-24 16:36:33 +02:00
parent 8627e4ed20
commit 1f131f1133

View File

@ -969,6 +969,7 @@ xmlCompileAttributeTest(xmlPatParserContextPtr ctxt) {
ERROR5(NULL, NULL, NULL,
"xmlCompileAttributeTest : no namespace bound to prefix %s\n",
prefix);
XML_PAT_FREE_STRING(ctxt, prefix);
ctxt->error = 1;
goto error;
}