From 3d5e48ba2499fe6a01f48f43a057f3d985ec0ff5 Mon Sep 17 00:00:00 2001 From: Han Wu Date: Fri, 19 Nov 2021 17:45:40 +0800 Subject: [PATCH] vppinfra: fix the memory leak while doing clib_bihash_free Type: fix Signed-off-by: Han Wu Change-Id: I6ad3c313dcab5ed193c135676c1cebd0a141fea1 --- src/vppinfra/bihash_template.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.16.6