diff --git a/libexslt/functions.c b/libexslt/functions.c index 60056717..075e2366 100644 --- a/libexslt/functions.c +++ b/libexslt/functions.c @@ -476,6 +476,7 @@ exsltFuncFunctionFunction (xmlXPathParserContextPtr ctxt, int nargs) { "executing a function\n", ctxt->context->functionURI, ctxt->context->function); xmlFreeNode(fake); + xmlXPathFreeObject(ret); goto error; } xmlFreeNode(fake);