diff options
author | mistachkin <mistachkin@noemail.net> | 2018-09-08 16:55:18 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2018-09-08 16:55:18 +0000 |
commit | c93c614543ecf1c1d9a8c0ee797b96dfaf48f95b (patch) | |
tree | 4f038498b15082553335550913893c517c6eeb11 /tool/lemon.c | |
parent | 42cb6ec4e6f22495bdb65d75da9986077736abae (diff) | |
download | sqlite-c93c614543ecf1c1d9a8c0ee797b96dfaf48f95b.tar.gz sqlite-c93c614543ecf1c1d9a8c0ee797b96dfaf48f95b.zip |
Add a missing call to free() in Lemon.
FossilOrigin-Name: 8b4cf33aafe09d9009119dcbd464b54be9605af5701002ee458819efa6e2e1f9
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; |