diff options
author | drh <drh@noemail.net> | 2007-08-22 00:39:19 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2007-08-22 00:39:19 +0000 |
commit | 86f8c197ddd6972a1bd37cdfcca01a19c7c1aada (patch) | |
tree | 4d049d45dae245f2d0a168035a6acd2419210d4a /src/malloc.c | |
parent | 32bc3f6e01750d6b730efd372952156d7d62b066 (diff) | |
download | sqlite-86f8c197ddd6972a1bd37cdfcca01a19c7c1aada.tar.gz sqlite-86f8c197ddd6972a1bd37cdfcca01a19c7c1aada.zip |
Reenable the memory management logic. The quick.test script now runs with
SQLITE_MEMDEBUG and SQLITE_ENABLE_MEMORY_MANAGEMENT. 7 minor errors. (CVS 4265)
FossilOrigin-Name: 1914044b8832041f13b20ead613bd13725425d7a
Diffstat (limited to 'src/malloc.c')
-rw-r--r-- | src/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/malloc.c b/src/malloc.c index 482e7636f..c8a5025ea 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -12,7 +12,7 @@ ** Memory allocation functions used throughout sqlite. ** ** -** $Id: malloc.c,v 1.8 2007/08/21 19:33:56 drh Exp $ +** $Id: malloc.c,v 1.9 2007/08/22 00:39:20 drh Exp $ */ #include "sqliteInt.h" #include <stdarg.h> @@ -58,7 +58,7 @@ void sqlite3_soft_heap_limit(int n){ ** Release memory held by SQLite instances created by the current thread. */ int sqlite3_release_memory(int n){ -#if defined(SQLITE_ENABLE_MEMORY_MANAGEMENT) && !defined(SQLITE_OMIT_DISKIO) +#ifdef SQLITE_ENABLE_MEMORY_MANAGEMENT return sqlite3PagerReleaseMemory(n); #else return SQLITE_OK; |