fix potential memory leak in elements.c
This commit is contained in:
parent
3ae79a8893
commit
90e44cde80
1
expat/examples/elements.c
Normal file → Executable file
1
expat/examples/elements.c
Normal file → Executable file
@ -88,6 +88,7 @@ main(int argc, char *argv[]) {
|
||||
fprintf(stderr, "%" XML_FMT_STR " at line %" XML_FMT_INT_MOD "u\n",
|
||||
XML_ErrorString(XML_GetErrorCode(parser)),
|
||||
XML_GetCurrentLineNumber(parser));
|
||||
XML_ParserFree(parser);
|
||||
return 1;
|
||||
}
|
||||
} while (! done);
|
||||
|
Loading…
Reference in New Issue
Block a user