From 4e2e518f6a0ca001e13c06d7463fb179e1e96124 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 16 Nov 2004 08:55:38 +0000 Subject: [PATCH] MINSIZE => 2 * SIZE_SZ --- malloc/malloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/malloc/malloc.c b/malloc/malloc.c index f4612046cd..323ad84663 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -4233,7 +4233,8 @@ _int_free(mstate av, Void_t* mem) #endif ) { - if (__builtin_expect (chunksize (chunk_at_offset (p, size)) < MINSIZE, 0) + if (__builtin_expect (chunksize (chunk_at_offset (p, size)) < 2 * SIZE_SZ, + 0) || __builtin_expect (chunksize (chunk_at_offset (p, size)) >= av->system_mem, 0)) {