diff options
author | drh <drh@noemail.net> | 2008-07-28 19:34:53 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-07-28 19:34:53 +0000 |
commit | 633e6d57d92e943fbd3a52ea6627e1a1d0c338b7 (patch) | |
tree | 2a7a73f29836bc687d239754a4ff914cd4d46d27 /src/vdbeblob.c | |
parent | 78bd9ca86f2d3537c2384896efe9882944222656 (diff) | |
download | sqlite-633e6d57d92e943fbd3a52ea6627e1a1d0c338b7.tar.gz sqlite-633e6d57d92e943fbd3a52ea6627e1a1d0c338b7.zip |
Implement the "lookaside" memory allocation cache. Use of this cache makes
the speed1.test script run about 15% faster. Added new interfaces to
control the cache. (CVS 5488)
FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r-- | src/vdbeblob.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c index e2cfb503d..746bfe4c3 100644 --- a/src/vdbeblob.c +++ b/src/vdbeblob.c @@ -12,7 +12,7 @@ ** ** This file contains code used to implement incremental BLOB I/O. ** -** $Id: vdbeblob.c,v 1.24 2008/07/10 00:32:42 drh Exp $ +** $Id: vdbeblob.c,v 1.25 2008/07/28 19:34:54 drh Exp $ */ #include "sqliteInt.h" @@ -117,7 +117,7 @@ int sqlite3_blob_open( if( sParse.zErrMsg ){ sqlite3_snprintf(sizeof(zErr), zErr, "%s", sParse.zErrMsg); } - sqlite3_free(sParse.zErrMsg); + sqlite3DbFree(db, sParse.zErrMsg); rc = SQLITE_ERROR; (void)sqlite3SafetyOff(db); sqlite3BtreeLeaveAll(db); @@ -229,7 +229,7 @@ int sqlite3_blob_open( } pBlob = (Incrblob *)sqlite3DbMallocZero(db, sizeof(Incrblob)); if( db->mallocFailed ){ - sqlite3_free(pBlob); + sqlite3DbFree(db, pBlob); goto blob_open_out; } pBlob->flags = flags; @@ -268,7 +268,7 @@ int sqlite3_blob_close(sqlite3_blob *pBlob){ int rc; rc = sqlite3_finalize(p->pStmt); - sqlite3_free(p); + sqlite3DbFree(p->db, p); return rc; } |