Skip to content

Commit

Permalink
File tool/lemon.c — part of check-in [8b4cf33a] at 2018-09-08 16:55:1…
Browse files Browse the repository at this point in the history
…8 on branch trunk — Add a missing call to free() in Lemon. (user: mistachkin, size: 172860)
  • Loading branch information
ksherlock committed Nov 23, 2018
1 parent f355e13 commit 6380c1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2863,6 +2863,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;
Expand Down

0 comments on commit 6380c1c

Please sign in to comment.