summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/bihash_template.c
diff options
context:
space:
mode:
authorHan Wu <wuhan9084@163.com>2021-11-19 17:45:40 +0800
committerDamjan Marion <dmarion@me.com>2021-11-22 10:06:05 +0000
commit3d5e48ba2499fe6a01f48f43a057f3d985ec0ff5 (patch)
tree206c068be0f167f5ad8733109f6e0dec28f8456f /src/vppinfra/bihash_template.c
parente494ad12578b5b2a85c707e2ce67bafeb78d60c5 (diff)
vppinfra: fix the memory leak while doing clib_bihash_free
Type: fix Signed-off-by: Han Wu <wuhan9084@163.com> Change-Id: I6ad3c313dcab5ed193c135676c1cebd0a141fea1
Diffstat (limited to 'src/vppinfra/bihash_template.c')
-rw-r--r--src/vppinfra/bihash_template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c
index a6fa6267c79..1c9f3b8708a 100644
--- a/src/vppinfra/bihash_template.c
+++ b/src/vppinfra/bihash_template.c
@@ -426,6 +426,7 @@ void BV (clib_bihash_free) (BVT (clib_bihash) * h)
vec_free (h->working_copies);
vec_free (h->working_copy_lengths);
+ clib_mem_free ((void *) h->alloc_lock);
#if BIHASH_32_64_SVM == 0
vec_free (h->freelists);
#else