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:
parent
8627e4ed20
commit
1f131f1133
@ -969,6 +969,7 @@ xmlCompileAttributeTest(xmlPatParserContextPtr ctxt) {
|
|||||||
ERROR5(NULL, NULL, NULL,
|
ERROR5(NULL, NULL, NULL,
|
||||||
"xmlCompileAttributeTest : no namespace bound to prefix %s\n",
|
"xmlCompileAttributeTest : no namespace bound to prefix %s\n",
|
||||||
prefix);
|
prefix);
|
||||||
|
XML_PAT_FREE_STRING(ctxt, prefix);
|
||||||
ctxt->error = 1;
|
ctxt->error = 1;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user