(malloc_consolidate): Set maxfb to address of last fastbin rather than
authordrepper <drepper>
Wed, 18 Oct 2006 19:06:27 +0000 (19:06 +0000)
committerdrepper <drepper>
Wed, 18 Oct 2006 19:06:27 +0000 (19:06 +0000)
end of fastbin array.

malloc/malloc.c

index 38ceb1e..4cbce04 100644 (file)
@@ -4699,7 +4699,7 @@ static void malloc_consolidate(av) mstate av;
        search all bins all the time.  */
     maxfb = &(av->fastbins[fastbin_index(get_max_fast ())]);
 #else
-    maxfb = &(av->fastbins[NFASTBINS]);
+    maxfb = &(av->fastbins[NFASTBINS - 1]);
 #endif
     fb = &(av->fastbins[0]);
     do {