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

Fix more problems with malloc() and IO failures. (CVS 2985)

FossilOrigin-Name: 29281dea81c909b70b2d914d7061a6df8f388195
This commit is contained in:
danielk1977
2006-01-21 12:08:54 +00:00
parent 02afc86171
commit c4da5b9f2c
8 changed files with 183 additions and 27 deletions

View File

@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
** $Id: btree.c,v 1.305 2006/01/20 18:10:57 drh Exp $
** $Id: btree.c,v 1.306 2006/01/21 12:08:54 danielk1977 Exp $
**
** This file implements a external (disk-based) database using BTrees.
** For a detailed discussion of BTrees, refer to
@@ -541,11 +541,9 @@ static int saveCursorPosition(BtCursor *pCur){
}
assert( !pCur->pPage->intKey || !pCur->pKey );
/* Todo: Should we drop the reference to pCur->pPage here? */
releasePage(pCur->pPage);
pCur->pPage = 0;
if( rc==SQLITE_OK ){
releasePage(pCur->pPage);
pCur->pPage = 0;
pCur->eState = CURSOR_REQUIRESEEK;
}