1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00
FossilOrigin-Name: 82d1934a428a34c292a612fb67bbcea262990e0f
This commit is contained in:
dan
2009-08-24 18:57:58 +00:00
parent 30a89a3845
commit 6aa657f76b
3 changed files with 10 additions and 21 deletions

View File

@@ -1428,7 +1428,6 @@ static int closePendingFds(unixFile *pFile){
rc = SQLITE_IOERR_CLOSE;
p->pNext = pError;
pError = p;
assert(0);
}else{
sqlite3_free(p);
}
@@ -2609,7 +2608,7 @@ static int afpUnlock(sqlite3_file *id, int locktype) {
struct unixOpenCnt *pOpen = pFile->pOpen;
pOpen->nLock--;
assert( pOpen->nLock>=0 );
if( pOpen->nLock==0 && pOpen->nPending>0 ){
if( pOpen->nLock==0 ){
rc = closePendingFds(pFile);
}
}
@@ -3817,7 +3816,7 @@ static int unixOpen(
if( pUnused ){
fd = pUnused->fd;
}else{
pUnused = sqlite3_malloc(sizeof(pUnused));
pUnused = sqlite3_malloc(sizeof(*pUnused));
if( !pUnused ){
return SQLITE_NOMEM;
}