From 90e44cde80a65be207a0609db089026c8dca8b3a Mon Sep 17 00:00:00 2001 From: zhouzhongyuan Date: Thu, 5 Sep 2019 16:17:51 +0800 Subject: [PATCH] fix potential memory leak in elements.c --- expat/examples/elements.c | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 expat/examples/elements.c diff --git a/expat/examples/elements.c b/expat/examples/elements.c old mode 100644 new mode 100755 index dfc434f7..eb0c729b --- a/expat/examples/elements.c +++ b/expat/examples/elements.c @@ -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);