summaryrefslogtreecommitdiff
path: root/libc/malloc
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2010-11-07 12:11:40 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2010-11-07 12:11:40 +0000
commit486caa1f257e98014ac78f7f7715876f705c17dd (patch)
tree99cad456a5df680ad632040afc583c4862c83b47 /libc/malloc
parente2dc087599c61bfc5ed2ab08b70d4fa69836b8b5 (diff)
downloadeglibc2-486caa1f257e98014ac78f7f7715876f705c17dd.tar.gz
Merge changes between r11842 and r11980 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@11981 7b3dc134-2b1b-0410-93df-9e9f96275f8d
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)) {