Index: src/main.c ================================================================== --- src/main.c +++ src/main.c @@ -12,11 +12,11 @@ ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** -** $Id: main.c,v 1.287 2005/05/06 22:05:57 drh Exp $ +** $Id: main.c,v 1.288 2005/05/23 04:51:02 danielk1977 Exp $ */ #include "sqliteInt.h" #include "os.h" #include @@ -544,10 +544,14 @@ pDbList = db->pNext; } sqlite3OsLeaveMutex(); } #endif + +#ifdef SQLITE_SSE + sqlite3_finalize(db->pFetch); +#endif db->magic = SQLITE_MAGIC_ERROR; sqliteFree(db); return SQLITE_OK; } Index: src/sqliteInt.h ================================================================== --- src/sqliteInt.h +++ src/sqliteInt.h @@ -9,11 +9,11 @@ ** May you share freely, never taking more than you give. ** ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.380 2005/05/22 20:12:37 drh Exp $ +** @(#) $Id: sqliteInt.h,v 1.381 2005/05/23 04:51:02 danielk1977 Exp $ */ #ifndef _SQLITEINT_H_ #define _SQLITEINT_H_ /* @@ -462,10 +462,13 @@ #endif Hash aFunc; /* All functions that can be in SQL exprs */ Hash aCollSeq; /* All collating sequences */ BusyHandler busyHandler; /* Busy callback */ Db aDbStatic[2]; /* Static space for the 2 default backends */ +#ifdef SQLITE_SSE + sqlite3_stmt *pFetch; /* Used by SSE to fetch stored statements */ +#endif }; /* ** Possible values for the sqlite.flags and or Db.flags fields. **