Initialize the pools that are part of the parser structure before

letting them get cleared.  Reported by Tim Crook.
This commit is contained in:
Fred L. Drake, Jr. 2002-08-27 20:24:19 +00:00
parent 1330c4c02f
commit 5ca422d4dd

View File

@ -678,10 +678,10 @@ XML_ParserCreate_MM(const XML_Char *encodingName,
ns = XML_FALSE;
ns_triplets = XML_FALSE;
parserInit(parser, encodingName);
dtdInit(&dtd, parser);
poolInit(&tempPool, &(parser->m_mem));
poolInit(&temp2Pool, &(parser->m_mem));
parserInit(parser, encodingName);
dtdInit(&dtd, parser);
if (!atts || !dataBuf || (encodingName && !protocolEncodingName)) {
XML_ParserFree(parser);