Skip to content
Snippets Groups Projects
Commit e0d96acacdf6 authored by Martin's avatar Martin
Browse files

QName parsing fix for patterns

* libxslt/pattern.c: fix a corner case and avoid a memory leak on
  error
parent a9e2a7bebfb9
No related branches found
No related tags found
No related merge requests found
......@@ -1420,7 +1420,7 @@
*prefix = NULL;
ret = xsltScanNCName(ctxt);
if (CUR == ':') {
if (ret && CUR == ':') {
*prefix = ret;
NEXT;
ret = xsltScanNCName(ctxt);
......@@ -1669,6 +1669,7 @@
xsltTransformError(NULL, NULL, NULL,
"xsltCompileStepPattern : no namespace bound to prefix %s\n",
prefix);
xmlFree(prefix);
ctxt->error = 1;
goto error;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment