malloc-fail: Fix memory leak in xmlValidateElementContent

This commit is contained in:
Nick Wellnhofer 2024-12-30 11:41:44 +01:00
parent ab62fc27e8
commit 71c37a565d

View File

@ -5111,8 +5111,8 @@ xmlValidateElementContent(xmlValidCtxtPtr ctxt, xmlNodePtr child,
if ((cur->children != NULL) &&
(cur->children->children != NULL)) {
if (nodeVPush(ctxt, cur) < 0) {
xmlRegFreeExecCtxt(exec);
return(-1);
ret = -1;
goto fail;
}
cur = cur->children->children;
continue;