mirror of
https://github.com/GNOME/libxml2.git
synced 2025-01-18 14:33:59 +08:00
malloc-fail: Fix memory leak in xmlValidateElementContent
This commit is contained in:
parent
ab62fc27e8
commit
71c37a565d
4
valid.c
4
valid.c
@ -5111,8 +5111,8 @@ xmlValidateElementContent(xmlValidCtxtPtr ctxt, xmlNodePtr child,
|
|||||||
if ((cur->children != NULL) &&
|
if ((cur->children != NULL) &&
|
||||||
(cur->children->children != NULL)) {
|
(cur->children->children != NULL)) {
|
||||||
if (nodeVPush(ctxt, cur) < 0) {
|
if (nodeVPush(ctxt, cur) < 0) {
|
||||||
xmlRegFreeExecCtxt(exec);
|
ret = -1;
|
||||||
return(-1);
|
goto fail;
|
||||||
}
|
}
|
||||||
cur = cur->children->children;
|
cur = cur->children->children;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user