mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-15 00:38:15 +00:00
Free the content model when used
This commit is contained in:
parent
813dde9bcc
commit
6a1873f1f1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue