From 5ca422d4dd4713dc94df242a86dcfa5b1cc2b758 Mon Sep 17 00:00:00 2001 From: "Fred L. Drake, Jr." Date: Tue, 27 Aug 2002 20:24:19 +0000 Subject: [PATCH] Initialize the pools that are part of the parser structure before letting them get cleared. Reported by Tim Crook. --- expat/lib/xmlparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index f42712e0..9deaec23 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -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);