diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/stdlib/malloc/malloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c index caf90ef02..0e0c9ab57 100644 --- a/libc/stdlib/malloc/malloc.c +++ b/libc/stdlib/malloc/malloc.c @@ -121,9 +121,8 @@ malloc (size_t size) if (mem) /* Record the size of this block. */ { - MALLOC_SET_SIZE (mem, size); - mem = MALLOC_ADDR (mem); + MALLOC_SET_SIZE (mem, size); MALLOC_DEBUG (" malloc: returning 0x%lx (base:0x%lx, total_size:%d)\n", (long)mem, (long)mem - MALLOC_ALIGNMENT, size); |