From 6380c1c5c04eeb02b8c18979458efca2f848ba18 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Fri, 23 Nov 2018 12:50:25 -0500 Subject: [PATCH] =?UTF-8?q?File=20tool/lemon.c=20=E2=80=94=20part=20of=20c?= =?UTF-8?q?heck-in=20[8b4cf33a]=20at=202018-09-08=2016:55:18=20on=20branch?= =?UTF-8?q?=20trunk=20=E2=80=94=20Add=20a=20missing=20call=20to=20free()?= =?UTF-8?q?=20in=20Lemon.=20(user:=20mistachkin,=20size:=20172860)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lemon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lemon.c b/lemon.c index c908d7f..a43d590 100644 --- a/lemon.c +++ b/lemon.c @@ -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;