mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virXMLParseHelper: 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
45edcd9f89
commit
5f5b676086
@ -789,10 +789,8 @@ virXMLParseHelper(int domcode,
|
|||||||
|
|
||||||
/* Set up a parser context so we can catch the details of XML errors. */
|
/* Set up a parser context so we can catch the details of XML errors. */
|
||||||
pctxt = xmlNewParserCtxt();
|
pctxt = xmlNewParserCtxt();
|
||||||
if (!pctxt || !pctxt->sax) {
|
if (!pctxt || !pctxt->sax)
|
||||||
virReportOOMError();
|
abort();
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
private.domcode = domcode;
|
private.domcode = domcode;
|
||||||
pctxt->_private = &private;
|
pctxt->_private = &private;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user