Free external entity parser in external_entity_suspender()

Removes some memory leaks detected by AddressSanitizer in
the test suite (see Issue #23)
This commit is contained in:
Rhodri James 2017-07-14 17:15:12 +01:00
parent 448cd2acac
commit 8cdcb7219d

View File

@ -1938,6 +1938,7 @@ external_entity_suspender(XML_Parser parser,
xml_failure(ext_parser);
return XML_STATUS_ERROR;
}
XML_ParserFree(ext_parser);
return XML_STATUS_OK;
}