Rebase for libxml 2.9.7
[platform/upstream/libxml2.git] / pattern.c
index 33dee3a..0eb8d81 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -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;
            }