mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix problems with malloc-failure handling. (CVS 1241)
FossilOrigin-Name: 398bc294c839368e7fa75a97ba8cc8d1639f9436
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
** May you share freely, never taking more than you give.
|
||||
**
|
||||
*************************************************************************
|
||||
** $Id: btree.c,v 1.101 2004/02/12 19:01:05 drh Exp $
|
||||
** $Id: btree.c,v 1.102 2004/02/14 17:35:07 drh Exp $
|
||||
**
|
||||
** This file implements a external (disk-based) database using BTrees.
|
||||
** For a detailed discussion of BTrees, refer to
|
||||
@@ -2724,7 +2724,8 @@ static int fileBtreeDelete(BtCursor *pCur){
|
||||
getTempCursor(pCur, &leafCur);
|
||||
rc = fileBtreeNext(&leafCur, ¬Used);
|
||||
if( rc!=SQLITE_OK ){
|
||||
return SQLITE_CORRUPT;
|
||||
if( rc!=SQLITE_NOMEM ) rc = SQLITE_CORRUPT;
|
||||
return rc;
|
||||
}
|
||||
rc = sqlitepager_write(leafCur.pPage);
|
||||
if( rc ) return rc;
|
||||
|
Reference in New Issue
Block a user