From 6a1873f1f10c6c5b31008a3be5d75c9385aacb12 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Wed, 8 Feb 2017 14:27:44 +0000 Subject: [PATCH] Free the content model when used --- expat/tests/runtests.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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