aboutsummaryrefslogtreecommitdiff
path: root/src/attach.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-07-28 19:34:53 +0000
committerdrh <drh@noemail.net>2008-07-28 19:34:53 +0000
commit633e6d57d92e943fbd3a52ea6627e1a1d0c338b7 (patch)
tree2a7a73f29836bc687d239754a4ff914cd4d46d27 /src/attach.c
parent78bd9ca86f2d3537c2384896efe9882944222656 (diff)
downloadsqlite-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/attach.c')
-rw-r--r--src/attach.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/attach.c b/src/attach.c
index 3964f379e..b8668f52b 100644
--- a/src/attach.c
+++ b/src/attach.c
@@ -11,7 +11,7 @@
*************************************************************************
** This file contains code used to implement the ATTACH and DETACH commands.
**
-** $Id: attach.c,v 1.76 2008/06/15 02:51:47 drh Exp $
+** $Id: attach.c,v 1.77 2008/07/28 19:34:53 drh Exp $
*/
#include "sqliteInt.h"
@@ -214,7 +214,7 @@ attach_error:
/* Return an error if we get here */
if( zErrDyn ){
sqlite3_result_error(context, zErrDyn, -1);
- sqlite3_free(zErrDyn);
+ sqlite3DbFree(db, zErrDyn);
}else{
zErr[sizeof(zErr)-1] = 0;
sqlite3_result_error(context, zErr, -1);
@@ -305,7 +305,7 @@ static void codeAttach(
goto attach_end;
}
rc = sqlite3AuthCheck(pParse, type, zAuthArg, 0, 0);
- sqlite3_free(zAuthArg);
+ sqlite3DbFree(db, zAuthArg);
if(rc!=SQLITE_OK ){
goto attach_end;
}
@@ -345,9 +345,9 @@ static void codeAttach(
}
attach_end:
- sqlite3ExprDelete(pFilename);
- sqlite3ExprDelete(pDbname);
- sqlite3ExprDelete(pKey);
+ sqlite3ExprDelete(db, pFilename);
+ sqlite3ExprDelete(db, pDbname);
+ sqlite3ExprDelete(db, pKey);
}
/*