diff options
author | danielk1977 <danielk1977@noemail.net> | 2007-08-29 14:06:22 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2007-08-29 14:06:22 +0000 |
commit | 26783a58e2206564f4db8a8bade9337a36a7b440 (patch) | |
tree | 03b0ed2f647f669f0d56aa1584b49a538c5a3334 /src/malloc.c | |
parent | f53e9b5ad5ea62453fdc87e04e37d7ab309bc4f6 (diff) | |
download | sqlite-26783a58e2206564f4db8a8bade9337a36a7b440.tar.gz sqlite-26783a58e2206564f4db8a8bade9337a36a7b440.zip |
Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323)
FossilOrigin-Name: c790c234c369c6b7610e67dcaaa9eee347df729c
Diffstat (limited to 'src/malloc.c')
-rw-r--r-- | src/malloc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/malloc.c b/src/malloc.c index 5db775d8e..bc321ab9a 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -12,7 +12,7 @@ ** Memory allocation functions used throughout sqlite. ** ** -** $Id: malloc.c,v 1.12 2007/08/29 12:31:26 danielk1977 Exp $ +** $Id: malloc.c,v 1.13 2007/08/29 14:06:23 danielk1977 Exp $ */ #include "sqliteInt.h" #include <stdarg.h> @@ -104,6 +104,10 @@ void *sqlite3DbMallocRaw(sqlite3 *db, unsigned n){ return p; } +/* +** Resize the block of memory pointed to by p to n bytes. If the +** resize fails, set the mallocFailed flag inthe connection object. +*/ void *sqlite3DbRealloc(sqlite3 *db, void *p, int n){ void *pNew = 0; if( db->mallocFailed==0 ){ |