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:
@ -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;
|
||||
|
Reference in New Issue
Block a user