aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-05-06 12:37:30 +0200
committerBeno�t Ganne <bganne@cisco.com>2022-05-06 12:14:32 +0000
commit6d953240bcdba267bccc84887b7ff73ce3e9d933 (patch)
tree394070a9072afd5a06c15a675eb9ae3b0b25a065 /src/vppinfra
parent4cfb46d4f8a8bc1f562b59b66696bc233f83356f (diff)
vppinfra: free vector against its heap
Type: fix Change-Id: Ie292ee56dd5265a56ef472554aaf086e61da7089 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra')
-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;
}