mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix a page leak in btree balance routines that follows a malloc failure.
This problem detected by the new soft-heap-limit testing. (CVS 4214) FossilOrigin-Name: bad661bb0bfabf982a2d711ea4165af130a4cae0
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
** May you share freely, never taking more than you give.
|
||||
**
|
||||
*************************************************************************
|
||||
** $Id: btree.c,v 1.395 2007/08/07 17:13:04 drh Exp $
|
||||
** $Id: btree.c,v 1.396 2007/08/13 14:56:44 drh Exp $
|
||||
**
|
||||
** This file implements a external (disk-based) database using BTrees.
|
||||
** See the header comment on "btreeInt.h" for additional information.
|
||||
@@ -4965,7 +4965,6 @@ static int balance_shallower(MemPage *pPage){
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if( rc!=SQLITE_OK ) goto end_shallow_balance;
|
||||
releasePage(pChild);
|
||||
}
|
||||
end_shallow_balance:
|
||||
|
Reference in New Issue
Block a user