diff options
Diffstat (limited to 'tool/lemon.c')
-rw-r--r-- | tool/lemon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/lemon.c b/tool/lemon.c index c2c9554c8..1fca8b975 100644 --- a/tool/lemon.c +++ b/tool/lemon.c @@ -2855,6 +2855,7 @@ void Parse(struct lemon *gp) filebuf = (char *)malloc( filesize+1 ); if( filesize>100000000 || filebuf==0 ){ ErrorMsg(ps.filename,0,"Input file too large."); + free(filebuf); gp->errorcnt++; fclose(fp); return; |