Make "xmllint --push --recovery" work

This commit is contained in:
Nick Wellnhofer 2020-08-16 22:02:04 +02:00
parent 99fc048d7f
commit 2b4769a6bd

View File

@ -2287,7 +2287,7 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
doc = ctxt->myDoc;
ret = ctxt->wellFormed;
xmlFreeParserCtxt(ctxt);
if (!ret) {
if ((!ret) && (!recovery)) {
xmlFreeDoc(doc);
doc = NULL;
}