1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix a case in the pager where an xFetch() reference was being leaked following an OOM error.

FossilOrigin-Name: 5885ba6ce768658ec25b60747430d147b315b55c
This commit is contained in:
dan
2013-03-25 13:50:49 +00:00
parent f23da96636
commit a1afc7425a
5 changed files with 11 additions and 11 deletions

View File

@@ -1807,6 +1807,7 @@ end_unlock:
** the requested locking level, this routine is a no-op.
*/
static int unixUnlock(sqlite3_file *id, int eFileLock){
assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 );
return posixUnlock(id, eFileLock, 0);
}
@@ -4531,7 +4532,6 @@ static int unixMapfile(unixFile *pFd, i64 nByte){
}
if( nMap!=pFd->mmapSize ){
void *pNew;
unixUnmapfile(pFd);
if( nMap>0 ){