diff options
author | drh <drh@noemail.net> | 2008-06-19 00:16:08 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-06-19 00:16:08 +0000 |
commit | f7141990544d890600a565e9dfc8e27ce1b69fda (patch) | |
tree | 4b8748d7ad2268f9587219d2fb6ceabc4f5da8aa /src/main.c | |
parent | 6a9773e88423672078011b1833e17361b62a4485 (diff) | |
download | sqlite-f7141990544d890600a565e9dfc8e27ce1b69fda.tar.gz sqlite-f7141990544d890600a565e9dfc8e27ce1b69fda.zip |
Add some test logic to the new memory allocation subsystem. (Lots more needed.)
The test suite is currently indicating memory leaks, though it is unclear if
this is a true code problem or just an instrumentation problem. (CVS 5240)
FossilOrigin-Name: cb1f11cd9764cf0275e88e1f6342e366e5536bfd
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 433aabdc7..4f61cd2ba 100644 --- a/src/main.c +++ b/src/main.c @@ -14,7 +14,7 @@ ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** -** $Id: main.c,v 1.450 2008/06/18 18:57:42 danielk1977 Exp $ +** $Id: main.c,v 1.451 2008/06/19 00:16:08 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -80,6 +80,7 @@ int sqlite3_initialize(void){ sqlite3_mutex_enter(pMutex); if( sqlite3IsInit==0 ){ sqlite3IsInit = 1; + sqlite3StatusReset(); if( rc==SQLITE_OK ) rc = sqlite3MallocInit(); if( rc==SQLITE_OK ) rc = sqlite3_os_init(); if( rc!=SQLITE_OK ){ |