mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
virXMLXPathContextNew: abort() on allocation failure
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
c3a5c67a84
commit
45edcd9f89
@ -51,10 +51,8 @@ virXMLXPathContextNew(xmlDocPtr xml)
|
||||
{
|
||||
xmlXPathContextPtr ctxt;
|
||||
|
||||
if (!(ctxt = xmlXPathNewContext(xml))) {
|
||||
virReportOOMError();
|
||||
return NULL;
|
||||
}
|
||||
if (!(ctxt = xmlXPathNewContext(xml)))
|
||||
abort();
|
||||
|
||||
return ctxt;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user