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

pattern: Fix memory leak xmlCompileStepPattern

This commit is contained in:
Nick Wellnhofer 2024-05-10 11:21:11 +02:00
parent 4ff2dccf9f
commit a846719b9c

View File

@ -1242,6 +1242,8 @@ xmlCompilePathPattern(xmlPatParserContextPtr ctxt) {
if (CUR == '@') {
NEXT;
xmlCompileAttributeTest(ctxt);
if (ctxt->error != 0)
goto error;
SKIP_BLANKS;
/* TODO: check for incompleteness */
if (CUR != 0) {