mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-24 21:33:51 +03:00
xinclude: Report malloc failure in xmlXIncludeMergeEntities
This commit is contained in:
parent
68e440eec4
commit
577fb0e380
@ -1249,8 +1249,10 @@ xmlXIncludeMergeEntities(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc,
|
||||
if (cur == NULL)
|
||||
return(-1);
|
||||
target = xmlCreateIntSubset(doc, cur->name, NULL, NULL);
|
||||
if (target == NULL)
|
||||
if (target == NULL) {
|
||||
xmlXIncludeErrMemory(ctxt);
|
||||
return(-1);
|
||||
}
|
||||
}
|
||||
|
||||
source = from->intSubset;
|
||||
|
Loading…
Reference in New Issue
Block a user