diff options
author | drh <drh@noemail.net> | 2010-08-11 06:14:15 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-08-11 06:14:15 +0000 |
commit | d56b121d10fcaacaf33b5b89c3d7446444d0c490 (patch) | |
tree | f2946bda5c419a5bf6b773db5b0e7c344a6697b3 /src/os_unix.c | |
parent | 216eaab2822b1ac5a91bd6ebaf985e9d8455f35b (diff) | |
download | sqlite-d56b121d10fcaacaf33b5b89c3d7446444d0c490.tar.gz sqlite-d56b121d10fcaacaf33b5b89c3d7446444d0c490.zip |
Fix memory allocation in proxy locking so that it works with SQLITE_MEMDEBUG.
FossilOrigin-Name: f854cbe06355dd3455b8af4ad6366949c412434e
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 5c648e3f9..e3ea4f222 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -5979,7 +5979,7 @@ static int proxyTransformUnixFile(unixFile *pFile, const char *path) { pCtx->conchFile->pMethod->xClose((sqlite3_file *)pCtx->conchFile); sqlite3_free(pCtx->conchFile); } - sqlite3_free(pCtx->lockProxyPath); + sqlite3DbFree(0, pCtx->lockProxyPath); sqlite3_free(pCtx->conchFilePath); sqlite3_free(pCtx); } @@ -6170,9 +6170,9 @@ static int proxyClose(sqlite3_file *id) { if( rc ) return rc; sqlite3_free(conchFile); } - sqlite3_free(pCtx->lockProxyPath); + sqlite3DbFree(0, pCtx->lockProxyPath); sqlite3_free(pCtx->conchFilePath); - sqlite3_free(pCtx->dbPath); + sqlite3DbFree(0, pCtx->dbPath); /* restore the original locking context and pMethod then close it */ pFile->lockingContext = pCtx->oldLockingContext; pFile->pMethod = pCtx->pOldMethod; |