1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Add a missing call to free() in Lemon.

FossilOrigin-Name: 8b4cf33aafe09d9009119dcbd464b54be9605af5701002ee458819efa6e2e1f9
This commit is contained in:
mistachkin
2018-09-08 16:55:18 +00:00
parent 42cb6ec4e6
commit c93c614543
3 changed files with 8 additions and 7 deletions

View File

@ -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;