diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index b66fbf57..c96c0382 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -2700,7 +2700,7 @@ processXmlDecl(XML_Parser parser, int isGeneralTextEntity, return XML_ERROR_NO_MEMORY; } result = handleUnknownEncoding(parser, storedEncName); - poolClear(&tempPool); + poolClear(&temp2Pool); if (result == XML_ERROR_UNKNOWN_ENCODING) eventPtr = encodingName; return result;