From: Sebastian Pipping Date: Sun, 16 Jul 2017 16:27:00 +0000 (+0200) Subject: runtests.c: Fix memleaks X-Git-Tag: R_2_2_3~29^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b24ecb9d46a5be3b7c396d60a853417f0b3750f2;p=libexpat runtests.c: Fix memleaks --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 553782e7..5c9857c9 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -2168,6 +2168,8 @@ external_entity_suspend_xmldecl(XML_Parser parser, if (status.parsing != XML_FINISHED) fail("Ext Parsing status not FINISHED"); } + + XML_ParserFree(ext_parser); return XML_STATUS_OK; } @@ -2239,6 +2241,8 @@ external_entity_suspending_faulter(XML_Parser parser, fail(fault->fail_text); if (XML_GetErrorCode(ext_parser) != fault->error) xml_failure(ext_parser); + + XML_ParserFree(ext_parser); return XML_STATUS_ERROR; }