From cbfaa23428e29d3216afb75d5af2d2e129dd01c2 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 25 Apr 2017 18:43:18 +0100 Subject: [PATCH] Validate parser parameter to XML_FreeContentModel --- expat/lib/xmlparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 9b2b6fa6..d4d17235 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -2083,7 +2083,8 @@ XML_GetCurrentColumnNumber(XML_Parser parser) void XMLCALL XML_FreeContentModel(XML_Parser parser, XML_Content *model) { - FREE(model); + if (parser != NULL) + FREE(model); } void * XMLCALL