bihash: Freeing up working_copy_lengths vector
[vpp.git] / src / vppinfra / bihash_template.c
index 9de1df4..a10dee0 100644 (file)
@@ -196,6 +196,7 @@ void BV (clib_bihash_set_kvp_format_fn) (BVT (clib_bihash) * h,
 void BV (clib_bihash_free) (BVT (clib_bihash) * h)
 {
   vec_free (h->working_copies);
+  vec_free (h->working_copy_lengths);
 #if BIHASH_32_64_SVM == 0
   vec_free (h->freelists);
 #else
@@ -764,7 +765,7 @@ u8 *BV (format_bihash) (u8 * s, va_list * args)
                    {
                      s = format (s, "    %d: %U\n",
                                  j * BIHASH_KVP_PER_PAGE + k,
-                                 h->fmt_fn, &(v->kvp[k]));
+                                 h->fmt_fn, &(v->kvp[k]), verbose);
                    }
                  else
                    {