From c120d94d58267b1100eb871fcb27a498da129d59 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 13 Nov 2004 18:58:01 +0000 Subject: Update. 2004-11-13 Jakub Jelinek * elf/rtld.c (print_statistics): Avoid segfaults if not all namespaces are used. Fix computation of num_relative_relocations on RELA architectures other than IA-64 and Alpha. 2004-11-13 Ulrich Drepper * malloc/malloc.c (_int_free): Use munmap_chunk for handling mmaped memory. --- malloc/malloc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'malloc') diff --git a/malloc/malloc.c b/malloc/malloc.c index d2112b159a..85a9f45861 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -4370,13 +4370,7 @@ _int_free(mstate av, Void_t* mem) else { #if HAVE_MMAP - int ret; - INTERNAL_SIZE_T offset = p->prev_size; - mp_.n_mmaps--; - mp_.mmapped_mem -= (size + offset); - ret = munmap((char*)p - offset, size + offset); - /* munmap returns non-zero on failure */ - assert(ret == 0); + munmap_chunk (p); #endif } } -- cgit v1.2.3