diff --git a/src/system/libroot/posix/malloc/arch-specific.cpp b/src/system/libroot/posix/malloc/arch-specific.cpp index 52eae595fa..c0b002721f 100644 --- a/src/system/libroot/posix/malloc/arch-specific.cpp +++ b/src/system/libroot/posix/malloc/arch-specific.cpp @@ -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; }