Merge pull request #339 from bettermanzzy/fixMemLeak

Fix a potential memory leak in elements.c
This commit is contained in:
Sebastian Pipping 2019-09-05 16:16:54 +02:00 committed by GitHub
commit 18637ba9c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
expat/examples/elements.c Normal file → Executable file
View 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);