]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
In test code, always use sqlite3_free() instead of free() to free error messages...
authordanielk1977 <danielk1977@noemail.net>
Tue, 27 Jun 2006 07:34:40 +0000 (07:34 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Tue, 27 Jun 2006 07:34:40 +0000 (07:34 +0000)
FossilOrigin-Name: 6521ee5f320e47f8fbd7d6b23929fab431023483

manifest
manifest.uuid
src/test1.c

index a4d98cd067a26be7229a63cc3c49811a44a4327f..b59c4836449e52a455fef46f834ffa8cf68c8825 100644 (file)
--- 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
index 6724a1a93a270550103295d03aba19cbe080f00b..c05e63aa19c986a5c4f6610d2d67e65d4bba3981 100644 (file)
@@ -1 +1 @@
-3e1f5567dfd306bdb97275a32afd02ea693eaf58
\ No newline at end of file
+6521ee5f320e47f8fbd7d6b23929fab431023483
\ No newline at end of file
index f5e88eae72c174c0b38e260d2f811c953b1ed2ac..66bd1e7c66306fae2e9a2d782d5bcfbe0eceb8b8 100644 (file)
@@ -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;
 }