diff options
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r-- | malloc/malloc.c | 12 |
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; } /* |