From d5a68919751e1f4b20112810b3330a1bb296d949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 25 Jan 2009 18:13:49 +0000 Subject: [PATCH] * 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 --- src/system/libroot/posix/malloc/arch-specific.cpp | 1 + 1 file changed, 1 insertion(+) 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; }