aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/heap.c b/src/vppinfra/heap.c
index f7b1f6bb31e..d48136c4c94 100644
--- a/src/vppinfra/heap.c
+++ b/src/vppinfra/heap.c
@@ -306,7 +306,7 @@ search_free_list (void *v, uword size)
if ((s = f_size - size) >= 0)
break;
}
- while (l >= 0);
+ while (l > 0);
/* If we fail to find a large enough object, try the next larger size. */
if (l < 0)