From: Rhodri James <rhodri@kynesim.co.uk> Date: Wed, 8 Feb 2017 14:27:44 +0000 (+0000) Subject: Free the content model when used X-Git-Tag: R_2_2_1~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a1873f1f10c6c5b31008a3be5d75c9385aacb12;p=libexpat Free the content model when used --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 9f93c778..77456480 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -1848,7 +1848,7 @@ END_TEST static void XMLCALL entity_suspending_decl_handler(void *userData, const XML_Char *UNUSED_P(name), - XML_Content *UNUSED_P(model)) + XML_Content *model) { XML_Parser ext_parser = (XML_Parser)userData; @@ -1857,6 +1857,7 @@ entity_suspending_decl_handler(void *userData, if (XML_GetErrorCode(ext_parser) != XML_ERROR_SUSPEND_PE) fail("Suspending subordinate parser get wrong code"); XML_SetElementDeclHandler(ext_parser, NULL); + XML_FreeContentModel(parser, model); } static int XMLCALL