vppinfra: fix the memory leak while doing clib_bihash_free 47/34547/3
authorHan Wu <wuhan9084@163.com>
Fri, 19 Nov 2021 09:45:40 +0000 (17:45 +0800)
committerDamjan Marion <dmarion@me.com>
Mon, 22 Nov 2021 10:06:05 +0000 (10:06 +0000)
Type: fix

Signed-off-by: Han Wu <wuhan9084@163.com>
Change-Id: I6ad3c313dcab5ed193c135676c1cebd0a141fea1

src/vppinfra/bihash_template.c

index a6fa626..1c9f3b8 100644 (file)
@@ -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