Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/util/virxml.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/util/virxml.c b/src/util/virxml.c
index 62bbafacd6..060b7530fc 100644
--- a/src/util/virxml.c
+++ b/src/util/virxml.c
@@ -789,10 +789,8 @@ virXMLParseHelper(int domcode,
/* Set up a parser context so we can catch the details of XML errors. */
pctxt = xmlNewParserCtxt();
- if (!pctxt || !pctxt->sax) {
- virReportOOMError();
- goto error;
- }
+ if (!pctxt || !pctxt->sax)
+ abort();
private.domcode = domcode;
pctxt->_private = &private;
--
2.29.2