From: Esa Ilari Vuokko Date: Mon, 21 Aug 2006 18:03:32 +0000 (+0000) Subject: Remove wrong VirtualAlloc MEM_DECOMMITs on cleanup X-Git-Tag: Before_FC_branch_merge~153 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=efb48d67eeb93dd81c6371b14a4f66a44714db63 Remove wrong VirtualAlloc MEM_DECOMMITs on cleanup --- diff --git a/rts/MBlock.c b/rts/MBlock.c index e3acea8..594c916 100644 --- a/rts/MBlock.c +++ b/rts/MBlock.c @@ -478,8 +478,6 @@ freeAllMBlocks(void) block_rec* next = 0; block_rec* it = free_blocks; for(; it!=0; ) { - if(!VirtualFree((void*)it->base, it->size, MEM_DECOMMIT)) - debugBelch("freeAllMBlocks: VirtualFree MEM_DECOMMIT failed with %ld", GetLastError()); next = it->next; free(it); it=next;