Josh Gibbs wrote:
> I reported this a while ago and forgot about this until today while I
> was doing some debugging and once again got the report of leaked memory.
> 
> I'm using the c amalgamation code from 3.7.10 with VStudio 2010, and
> always start up my databases setting a temp directory to be used in the
> form:
> 
> PRAGMA temp_store_directory = 'my_app_dir_dbtemp'
> 
> This is passed into the 'sqlite3_exec' function.
> 
> On exit, the program is reporting that line 15215 of sqlite.c is where
> the unfreed allocation occurred:    void *p = SQLITE_MALLOC( nByte );

1) This pragma is deprecated and should not be used. If you look at
documentation, it should be quite clear. If you look at sources, it should be
even more clear (global variable, that affects all database connections,
unprotected and not thread-safe, etc; you totally don't want to touch it, even
with pole stick).
2) This is not "real" leak - previous value is freed.

> The content of the memory contains my temp path.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to