Free external entity parser in external_entity_param_checker()

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

View File

@ -2047,6 +2047,7 @@ external_entity_param_checker(XML_Parser parser,
return XML_STATUS_ERROR;
}
handler_data = parser;
XML_ParserFree(ext_parser);
return XML_STATUS_OK;
}