From d957279cfb6845616ef6e5be23d4a79b2f94d578 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 17 Jul 1999 23:56:47 +0000 Subject: Update. * stdio-common/bug1.c: Include to get prototype for free. * malloc/malloc.c: Add missing chunk of patch from 1999-07-04. --- malloc/malloc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'malloc') diff --git a/malloc/malloc.c b/malloc/malloc.c index 31ab045..a2b80a9 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -4436,13 +4436,10 @@ realloc_check(oldmem, bytes, caller) oldp = mem2chunk_check(oldmem); if(!oldp) { (void)mutex_unlock(&main_arena.mutex); - switch(check_action) { - case 1: + if (check_action & 1) fprintf(stderr, "realloc(): invalid pointer %p!\n", oldmem); - break; - case 2: + if (check_action & 2) abort(); - } return malloc_check(bytes, NULL); } oldsize = chunksize(oldp); -- cgit v1.1