1
0
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:
drh
2007-08-13 14:56:44 +00:00
parent 5814c1a9fc
commit 117066ce50
3 changed files with 9 additions and 10 deletions

View File

@@ -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: