* Patch from Olivier Coursiere: restore sFreeHeapSize in case of resize_area failure

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29013 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2009-01-25 18:13:49 +00:00
parent 9509699116
commit d5a6891975
@@ -214,6 +214,7 @@ hoardSbrk(long size)
if (resize_area(sHeapArea, pageSize) < B_OK) {
// out of memory - ToDo: as a fall back, we could try to allocate another area
sFreeHeapSize = oldHeapSize;
hoardUnlock(sHeapLock);
return NULL;
}