Commit 15f148ee authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Daniel Veillard

Fix memory leak in xsltNumberFormat

When tempformat is 1 we need to free data->format
since it comes from xsltEvalAttrValueTemplate and otherwise it leaks
parent 7ca19df8
......@@ -809,6 +809,7 @@ xsltNumberFormat(xsltTransformContextPtr ctxt,
XSLT_NUMBER_FORMAT_END:
if (tempformat == 1) {
/* The format need to be recomputed each time */
xmlFree(data->format);
data->format = NULL;
}
if (output != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment