mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
2004-11-13 Jakub Jelinek <jakub@redhat.com> * 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 <drepper@redhat.com> * malloc/malloc.c (_int_free): Use munmap_chunk for handling mmaped memory.
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user