Commit 0b793591 authored by Zhongyuan Zhou's avatar Zhongyuan Zhou Committed by Nick Wellnhofer

Fix memory leak in xmlRegEpxFromParse

Merge request !39
parent 8efc5b28
......@@ -545,6 +545,8 @@ xmlRegEpxFromParse(xmlRegParserCtxtPtr ctxt) {
if (transitions == NULL) {
xmlFree(stateRemap);
xmlFree(stringRemap);
for (i = 0;i < nbatoms;i++)
xmlFree(stringMap[i]);
xmlFree(stringMap);
xmlFree(ret);
return(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