1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Use ckfree() instead of sqlite3_free() to free an allocation made by ckalloc() in test_thread.c (test code only). (CVS 5633)

FossilOrigin-Name: 677ac144c8f7e2722fdf05da1431919d6a8bb45f
This commit is contained in:
danielk1977
2008-08-28 13:15:49 +00:00
parent 29e2d6a5e6
commit 3725c3ffa2
3 changed files with 9 additions and 9 deletions

View File

@@ -14,7 +14,7 @@
** test that sqlite3 database handles may be concurrently accessed by
** multiple threads. Right now this only works on unix.
**
** $Id: test_thread.c,v 1.6 2007/12/13 21:54:11 drh Exp $
** $Id: test_thread.c,v 1.7 2008/08/28 13:15:50 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -171,7 +171,7 @@ static int sqlthread_spawn(
rc = Tcl_CreateThread(&x, tclScriptThread, (void *)pNew, nStack, flags);
if( rc!=TCL_OK ){
Tcl_AppendResult(interp, "Error in Tcl_CreateThread()", 0);
sqlite3_free(pNew);
ckfree(pNew);
return TCL_ERROR;
}