aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vppinfra/vec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/vec.h b/src/vppinfra/vec.h
index f45f45e3388..607fc282897 100644
--- a/src/vppinfra/vec.h
+++ b/src/vppinfra/vec.h
@@ -383,7 +383,7 @@ _vec_free (void **vp)
{
if (vp[0] == 0)
return;
- clib_mem_free (vec_header (vp[0]));
+ clib_mem_heap_free (vec_get_heap (vp[0]), vec_header (vp[0]));
vp[0] = 0;
}