Re: [sqlite] Including sqlite3 in a GNU project

2005-09-24 Thread Mike Chirico
with the configure.in above. if HAVE_SQLITE bin_PROGRAMS = getquota setquotas quotadb else bin_PROGRAMS = getquota setquotas endif getquota_SOURCES = getquota.c quota.h setquotas_SOURCES = setquotas.c quota.h quotadb_SOURCES = quotadb.c quota.h quotadb_LDADD = @INCLUDES@ @SQLIBOBJS@ @EXTRALIB@ @SQLLIBS@ Hope with helps. Regards, Mike Chirico

[sqlite] Quick Start Example Potential Memory Leak: zErrMsg

2005-09-11 Thread Mike Chirico
potential memory leaks with multiple failed calls, if the zErrMsg is not freed. It would be helpful to inform the user, with the first example, that it is the programmers responsibility to free this variable. Another example can be seen in the "SQLite Tutorial" in the section C and C++ API. Reference the following link: http://souptonuts.sourceforge.net/readme_sqlite_tutorial.html Regards, Mike Chirico

[sqlite] Quick start example contains possible memory leak: zErrMsg

2005-07-28 Thread mike . chirico
tatements, with long running programs, the memory is never freed. At least I believe it is not. If the above is correct, changing the example my help users. Regards, Mike Chirico #include #include static int callback(void *NotUsed, int argc, char **argv, char **azColName){