Make XML_ParserFree() null-safe, so that it behaves

like the standard free() memory deallocation function.
This commit is contained in:
Karl Waclawek 2003-10-26 08:13:54 +00:00
parent bd816ff175
commit e16720329e

View file

@ -1072,6 +1072,8 @@ destroyBindings(BINDING *bindings, XML_Parser parser)
void XMLCALL
XML_ParserFree(XML_Parser parser)
{
if (parser == NULL)
return;
for (;;) {
TAG *p;
if (tagStack == NULL) {