Re: [sqlite] Possible memory leak in select.c

2007-07-02 Thread Ben Combee
On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: "Ben Combee" <[EMAIL PROTECTED]> wrote: > Won't this code leak the memory to which zName points during the > assignment from the call to sqlite3MPrintf? > The %z calls sqliteFree() for you automatically. Thanks for the clarification.

Re: [sqlite] Possible memory leak in select.c

2007-07-02 Thread drh
"Ben Combee" <[EMAIL PROTECTED]> wrote: > This is something the Coverity caught when run locally on the SQLite > 3.3.17 source, but it seems to still be there in the CVS version: > > In select.c's sqlite3ResultSetOfSelect(), zName is allocated using a > malloc-style function at the top of the

[sqlite] Possible memory leak in select.c

2007-07-02 Thread Ben Combee
This is something the Coverity caught when run locally on the SQLite 3.3.17 source, but it seems to still be there in the CVS version: In select.c's sqlite3ResultSetOfSelect(), zName is allocated using a malloc-style function at the top of the routine. Later, there's code to guarantee a unique