about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--malloc/malloc.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c29dd53c47..66431b7d0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
 
+	[BZ #12207]
+	* malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
+
 	[BZ #12204]
 	* string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
 	* sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
diff --git a/malloc/malloc.c b/malloc/malloc.c
index f7770a394c..3e06b8755b 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -2831,7 +2831,7 @@ static void do_check_malloc_state(mstate av)
   max_fast_bin = fastbin_index(get_max_fast ());
 
   for (i = 0; i < NFASTBINS; ++i) {
-    p = av->fastbins[i];
+    p = fastbin (av, i);
 
     /* The following test can only be performed for the main arena.
        While mallopt calls malloc_consolidate to get rid of all fast