Skip to content

Commit 71c37a5

Browse files
committed
malloc-fail: Fix memory leak in xmlValidateElementContent
1 parent ab62fc2 commit 71c37a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

valid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5111,8 +5111,8 @@ xmlValidateElementContent(xmlValidCtxtPtr ctxt, xmlNodePtr child,
51115111
if ((cur->children != NULL) &&
51125112
(cur->children->children != NULL)) {
51135113
if (nodeVPush(ctxt, cur) < 0) {
5114-
xmlRegFreeExecCtxt(exec);
5115-
return(-1);
5114+
ret = -1;
5115+
goto fail;
51165116
}
51175117
cur = cur->children->children;
51185118
continue;

0 commit comments

Comments
 (0)