From 5656590fa06023de76ef366451376156ee5bdec3 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Thu, 28 Nov 2013 21:58:25 +0900 Subject: [PATCH] [bugfix] do not fuse end-of-page block into other blocks --- src/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gc.c b/src/gc.c index d0fbf1e3..853413ce 100644 --- a/src/gc.c +++ b/src/gc.c @@ -455,7 +455,7 @@ gc_free(pic_state *pic, union header *p) break; } } - if (p + p->s.size == bp->s.ptr) { + if (p + p->s.size == bp->s.ptr && bp->s.ptr->s.size > 0) { p->s.size += bp->s.ptr->s.size; p->s.ptr = bp->s.ptr->s.ptr; }