At 14:06 11/04/2012, you wrote:
On Wed, Apr 11, 2012 at 02:01:29PM +0200, Eduardo Morras wrote:
> At 12:09 11/04/2012, you wrote:
> >Hi, all
> >I have applied a memory leak detection tool
> >Melton<http://lcs.ios.ac.cn/~xuzb/melton.html> to
> >find memory leaks in sqlite-3.7.11.
> >Two bugs were found, and I check them manually as the real ones.
> >Here is the url of the bugs:
> >http://lcs.ios.ac.cn/~xuzb/bugsfound/memleak/sqlite-3.7.11/realbu gs/index.html
>
> For the first one, check line 6307. It does a trick to call free
> only if the pointer is not null.

That's zSelect. The leaked object is zTmp, which has been sneakily
allocated by the appendText function on 6276. Looks like it's actually
leaked on every call.

It's realloced inside appendText function, you're right.

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to