From a976434b620a5d81a1cea8867ebc49d748c93a88 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Mon, 5 Aug 2013 12:37:06 +0200 Subject: [PATCH 13/14] Memory leak in xsltCompileIdKeyPattern error path Fix from bug #691548 by Vladimir Marek. --- libxslt/pattern.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libxslt/pattern.c b/libxslt/pattern.c index a97726c..57f8b9f 100644 --- a/libxslt/pattern.c +++ b/libxslt/pattern.c @@ -1433,6 +1433,7 @@ xsltCompileIdKeyPattern(xsltParserContextPtr ctxt, xmlChar *name, if (CUR != ',') { xsltTransformError(NULL, NULL, NULL, "xsltCompileIdKeyPattern : , expected\n"); + xmlFree(lit); ctxt->error = 1; return; } -- 1.8.4.1