mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
pattern: Fix memory leak xmlCompileStepPattern
This commit is contained in:
@@ -1242,6 +1242,8 @@ xmlCompilePathPattern(xmlPatParserContextPtr ctxt) {
|
|||||||
if (CUR == '@') {
|
if (CUR == '@') {
|
||||||
NEXT;
|
NEXT;
|
||||||
xmlCompileAttributeTest(ctxt);
|
xmlCompileAttributeTest(ctxt);
|
||||||
|
if (ctxt->error != 0)
|
||||||
|
goto error;
|
||||||
SKIP_BLANKS;
|
SKIP_BLANKS;
|
||||||
/* TODO: check for incompleteness */
|
/* TODO: check for incompleteness */
|
||||||
if (CUR != 0) {
|
if (CUR != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user