]> granicus.if.org Git - libexpat/commitdiff
Free external entity parser in external_entity_param()
authorRhodri James <rhodri@kynesim.co.uk>
Fri, 14 Jul 2017 16:22:54 +0000 (17:22 +0100)
committerRhodri James <rhodri@kynesim.co.uk>
Fri, 14 Jul 2017 16:22:54 +0000 (17:22 +0100)
Removes some of the memory leaks detected by AddressSanitizer in
the test suite (see Issue #23).

expat/tests/runtests.c

index d681cd77f43055f1a229c4f2cb7792827a22b8ec..9f4b2a3e09c06cd59796f4150c41a508a1378021 100644 (file)
@@ -2394,6 +2394,7 @@ external_entity_param(XML_Parser parser,
         fail("Unknown system ID");
     }
 
+    XML_ParserFree(ext_parser);
     return XML_STATUS_ERROR;
 }