summaryrefslogtreecommitdiff
path: root/libc/malloc
diff options
context:
space:
mode:
Diffstat (limited to 'libc/malloc')
-rw-r--r--libc/malloc/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/malloc/malloc.c b/libc/malloc/malloc.c
index 53ee1ccb8..f7770a394 100644
--- a/libc/malloc/malloc.c
+++ b/libc/malloc/malloc.c
@@ -4850,7 +4850,7 @@ _int_free(mstate av, mchunkptr p)
}
if (__builtin_expect (perturb_byte, 0))
- free_perturb (chunk2mem(p), size - SIZE_SZ);
+ free_perturb (chunk2mem(p), size - 2 * SIZE_SZ);
set_fastchunks(av);
unsigned int idx = fastbin_index(size);
@@ -4954,7 +4954,7 @@ _int_free(mstate av, mchunkptr p)
}
if (__builtin_expect (perturb_byte, 0))
- free_perturb (chunk2mem(p), size - SIZE_SZ);
+ free_perturb (chunk2mem(p), size - 2 * SIZE_SZ);
/* consolidate backward */
if (!prev_inuse(p)) {