From: Rhodri James Date: Fri, 14 Jul 2017 16:22:54 +0000 (+0100) Subject: Free external entity parser in external_entity_param() X-Git-Tag: R_2_2_3~32^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d350a6cb0d0c5555935a81b2bec68adf82485e1d;p=libexpat Free external entity parser in external_entity_param() Removes some of the memory leaks detected by AddressSanitizer in the test suite (see Issue #23). --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index d681cd77..9f4b2a3e 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -2394,6 +2394,7 @@ external_entity_param(XML_Parser parser, fail("Unknown system ID"); } + XML_ParserFree(ext_parser); return XML_STATUS_ERROR; }