1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Fix memory leak in xmlRegEpxFromParse

Merge request !39
This commit is contained in:
zhouzhongyuan
2019-08-26 15:24:12 +08:00
committed by Nick Wellnhofer
parent 8efc5b283c
commit 0b793591ac

View File

@ -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);