From 448cd2acac0249fc7337bddfd52de124c6336c6f Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Fri, 14 Jul 2017 17:12:31 +0100 Subject: [PATCH] Free external entity parser in external_entity_param_checker() Removes some of the 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 d044afd6..5922cc3e 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -2047,6 +2047,7 @@ external_entity_param_checker(XML_Parser parser, return XML_STATUS_ERROR; } handler_data = parser; + XML_ParserFree(ext_parser); return XML_STATUS_OK; }