From 4f8a5d3cffccf92f7e93e9d5fd73121b41d1240a Mon Sep 17 00:00:00 2001 From: Esa Ilari Vuokko Date: Thu, 31 Aug 2006 22:33:15 +0000 Subject: [PATCH] Don't lose linked list tail --- rts/MBlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts/MBlock.c b/rts/MBlock.c index edde679..c886fd5 100644 --- a/rts/MBlock.c +++ b/rts/MBlock.c @@ -408,7 +408,7 @@ findFreeBlocks(nat n) { if( (((unsigned long)it->base) & MBLOCK_MASK) == 0) { /* MBlock aligned */ ret = (void*)it->base; if(it->size==required_size) { - prev->next=0; + prev->next=it->next; stgFree(it); } else { it->base += required_size; -- 1.7.10.4