diff options
author | Damjan Marion <damarion@cisco.com> | 2022-05-06 12:37:30 +0200 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2022-05-06 12:14:32 +0000 |
commit | 6d953240bcdba267bccc84887b7ff73ce3e9d933 (patch) | |
tree | 394070a9072afd5a06c15a675eb9ae3b0b25a065 | |
parent | 4cfb46d4f8a8bc1f562b59b66696bc233f83356f (diff) |
vppinfra: free vector against its heap
Type: fix
Change-Id: Ie292ee56dd5265a56ef472554aaf086e61da7089
Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r-- | src/vppinfra/vec.h | 2 |
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; } |