From: danielk1977 Date: Tue, 27 Jun 2006 07:34:40 +0000 (+0000) Subject: In test code, always use sqlite3_free() instead of free() to free error messages... X-Git-Tag: version-3.6.10~2864 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=926aab2274f61ed4fab7093a83070a623cba7e3f;p=thirdparty%2Fsqlite.git In test code, always use sqlite3_free() instead of free() to free error messages returned by sqlite3_exec(). (CVS 3303) FossilOrigin-Name: 6521ee5f320e47f8fbd7d6b23929fab431023483 --- diff --git a/manifest b/manifest index a4d98cd067..b59c483644 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Make\ssure\sthat\sMATCH\sterms\sthat\sa\svirtual\stable\ssays\sshould\sbe\somitted\nreally\sare\somitted.\s(CVS\s3302) -D 2006-06-27T02:36:58 +C In\stest\scode,\salways\suse\ssqlite3_free()\sinstead\sof\sfree()\sto\sfree\serror\smessages\sreturned\sby\ssqlite3_exec().\s(CVS\s3303) +D 2006-06-27T07:34:40 F Makefile.in f839b470345d3cb4b0644068474623fe2464b5d3 F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 @@ -77,7 +77,7 @@ F src/sqlite3ext.h c611255287e9a11ce4f1fe6251c2a0b9d32a828b F src/sqliteInt.h b82962553a49eea4cd5c35634c7c9e0c93700814 F src/table.c e707e822aad688034d391b93df63d6b2d302fdca F src/tclsqlite.c 32d9e0147077f2e2c127c5f214fb3fe03ef97d18 -F src/test1.c 233d5c83d11f34aa1c02eb72011ba9a30b72e078 +F src/test1.c bb8dd92a73fbc77584b0e94848283612a0da6c48 F src/test2.c ca74a1d8aeb7d9606e8f6b762c5daf85c1a3f92b F src/test3.c 833dc8346e431182ae6bd0648455c3d4cc65a19f F src/test4.c 8b784cd82de158a2317cb4ac4bc86f91ad315e25 @@ -374,7 +374,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513 -P 6609c25fbfa5ad7f55c356936abb1721686c47ca -R 9a37bd9cfc6a740924847839bd916ca2 -U drh -Z 248f4b236a3fad27fa975dbb4d0967d3 +P 3e1f5567dfd306bdb97275a32afd02ea693eaf58 +R 80f93022d986d1101b4cc35d47fb5dc0 +U danielk1977 +Z b8db982134c877730ff38a4ddba62af5 diff --git a/manifest.uuid b/manifest.uuid index 6724a1a93a..c05e63aa19 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -3e1f5567dfd306bdb97275a32afd02ea693eaf58 \ No newline at end of file +6521ee5f320e47f8fbd7d6b23929fab431023483 \ No newline at end of file diff --git a/src/test1.c b/src/test1.c index f5e88eae72..66bd1e7c66 100644 --- a/src/test1.c +++ b/src/test1.c @@ -13,7 +13,7 @@ ** is not included in the SQLite library. It is used for automated ** testing of the SQLite library. ** -** $Id: test1.c,v 1.212 2006/06/20 11:01:08 danielk1977 Exp $ +** $Id: test1.c,v 1.213 2006/06/27 07:34:40 danielk1977 Exp $ */ #include "sqliteInt.h" #include "tcl.h" @@ -222,7 +222,7 @@ static int test_exec_printf( Tcl_AppendElement(interp, zBuf); Tcl_AppendElement(interp, rc==SQLITE_OK ? Tcl_DStringValue(&str) : zErr); Tcl_DStringFree(&str); - if( zErr ) free(zErr); + if( zErr ) sqlite3_free(zErr); if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; return TCL_OK; } @@ -317,7 +317,7 @@ static int test_get_table_printf( Tcl_AppendElement(interp, zErr); } sqlite3_free_table(aResult); - if( zErr ) free(zErr); + if( zErr ) sqlite3_free(zErr); if( sqlite3TestErrCode(interp, db, rc) ) return TCL_ERROR; return TCL_OK; }