From 8cdcb7219d4cbd454c62c1755f67d173da8180db Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Fri, 14 Jul 2017 17:15:12 +0100 Subject: [PATCH] Free external entity parser in external_entity_suspender() Removes some memory leaks detected by AddressSanitizer in the test suite (see Issue #23) --- expat/tests/runtests.c | 1 + 1 file changed, 1 insertion(+) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 5922cc3e..d681cd77 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -1938,6 +1938,7 @@ external_entity_suspender(XML_Parser parser, xml_failure(ext_parser); return XML_STATUS_ERROR; } + XML_ParserFree(ext_parser); return XML_STATUS_OK; }