expat/lib xmlparse.c,1.117,1.118
"Karl Waclawek" <[email protected]> Sun, 26 Oct 2003 01:13:57 -0700
| Newsgroups | gmane.text.xml.expat.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/expat/expat/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv13440
Modified Files:
xmlparse.c
Log Message:
Make XML_ParserFree() null-safe, so that it behaves
like the standard free() memory deallocation function.
Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- xmlparse.c 18 Oct 2003 04:46:02 -0000 1.117
+++ xmlparse.c 26 Oct 2003 08:13:54 -0000 1.118
@@ -1072,6 +1072,8 @@
void XMLCALL
XML_ParserFree(XML_Parser parser)
{
+ if (parser == NULL)
+ return;
for (;;) {
TAG *p;
if (tagStack == NULL) {