Re: [sqlite] Possible memory leaks in shell.c

2007-07-02 Thread Dan Kennedy
On Mon, 2007-07-02 at 18:46 -0500, Ben Combee wrote: > This one's in shell.c. In process_input(), zLine is assigned using > > zLine = one_input_line(zSql, in); > > Usually, you hit the free(zLine) call in one of the code paths before > repeating the while loop. However, on line 1614 > >

[sqlite] Possible memory leaks in shell.c

2007-07-02 Thread Ben Combee
This one's in shell.c. In process_input(), zLine is assigned using zLine = one_input_line(zSql, in); Usually, you hit the free(zLine) call in one of the code paths before repeating the while loop. However, on line 1614 if( (zSql==0 || zSql[0]==0) && _all_whitespace(zLine) ) continue; you