about summary refs log tree commit diff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 3f4ddcd7f7..b1f813efbe 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -4147,17 +4147,17 @@ _int_malloc(mstate av, size_t bytes)
         }
       }
 
-      if (size >= nb)
-	any_larger = true;
-#define MAX_ITERS	10000
-      if (++iters == MAX_ITERS)
-	break;
-
       mark_bin(av, victim_index);
       victim->bk = bck;
       victim->fd = fwd;
       fwd->bk = victim;
       bck->fd = victim;
+
+      if (size >= nb)
+	any_larger = true;
+#define MAX_ITERS	10000
+      if (++iters >= MAX_ITERS)
+	break;
     }
 
     /*