[libxslt] Memory leak in xsltCompileIdKeyPattern error path



commit a976434b620a5d81a1cea8867ebc49d748c93a88
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Mon Aug 5 12:37:06 2013 +0200

    Memory leak in xsltCompileIdKeyPattern error path
    
    Fix from bug #691548 by Vladimir Marek.

 libxslt/pattern.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
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;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]