mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-14 16:20:45 +00:00
Make XML_ParserFree() null-safe, so that it behaves
like the standard free() memory deallocation function.
This commit is contained in:
parent
bd816ff175
commit
e16720329e
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue