1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

* malloc/malloc.c (do_check_chunk): Correct check for mmaped block

not overlapping with arena.
This commit is contained in:
Ulrich Drepper
2007-05-19 04:42:52 +00:00
parent 129abdd3ee
commit 2acd01acb1
3 changed files with 5 additions and 2 deletions

View File

@@ -267,7 +267,7 @@ reallochook (__ptr_t ptr, __malloc_size_t size, const __ptr_t caller)
if (size == 0)
{
freehook (ptr, caller);
return;
return NULL;
}
struct hdr *hdr;