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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user