31 lines
792 B
Diff
31 lines
792 B
Diff
From a0a8059b2cadaf6bb65469ead748873c61a17ace Mon Sep 17 00:00:00 2001
|
|
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
|
Date: Sat, 30 May 2020 15:33:03 +0200
|
|
Subject: [PATCH] Revert "Fix memory leak in
|
|
xmlParseBalancedChunkMemoryRecover"
|
|
|
|
This reverts commit 5a02583c7e683896d84878bd90641d8d9b0d0549.
|
|
|
|
Fixes #161.
|
|
---
|
|
parser.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/parser.c b/parser.c
|
|
index 4ea8e84..4cc58b1 100644
|
|
--- a/parser.c
|
|
+++ b/parser.c
|
|
@@ -13785,8 +13785,7 @@ xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax,
|
|
xmlFreeParserCtxt(ctxt);
|
|
newDoc->intSubset = NULL;
|
|
newDoc->extSubset = NULL;
|
|
- if(doc != NULL)
|
|
- newDoc->oldNs = NULL;
|
|
+ newDoc->oldNs = NULL;
|
|
xmlFreeDoc(newDoc);
|
|
|
|
return(ret);
|
|
--
|
|
1.8.3.1
|
|
|