1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Take care not to invoke the xShmClose method of the VFS with a NULL

shared memory object.

FossilOrigin-Name: 1465d3842c52aa7471f63deb47fe5b256d4e01c2
This commit is contained in:
drh
2010-05-04 16:33:37 +00:00
parent 2cee6abf8e
commit 33bec22fb1
3 changed files with 19 additions and 9 deletions

View File

@@ -613,7 +613,7 @@ int sqlite3WalOpen(
}
if( rc!=SQLITE_OK ){
pVfs->xShmClose(pVfs, pRet->pWIndex, 0);
if( pRet->pWIndex ) pVfs->xShmClose(pVfs, pRet->pWIndex, 0);
sqlite3OsClose(pRet->pFd);
sqlite3_free(pRet);
}else{