From ffe92f487fdad55e1a788ef77ae6addce02c878b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bryon=20Gloden=2C=20CISSP=C2=AE?= Date: Mon, 1 Aug 2016 13:51:30 -0400 Subject: [PATCH] binpac: Update pac_parse.yy (error) Memory leak: msgbug Found by https://github.com/bryongloden/cppcheck --- tools/binpac/src/pac_parse.yy | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/binpac/src/pac_parse.yy b/tools/binpac/src/pac_parse.yy index 58d66b8808..5bf3c96434 100644 --- a/tools/binpac/src/pac_parse.yy +++ b/tools/binpac/src/pac_parse.yy @@ -1089,5 +1089,6 @@ int yyerror(const char msg[]) fprintf(stderr, " (yychar=%d)", yychar); fprintf(stderr, "\n"); + delete[] msgbuf; return 0; }