aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorVijayabhaskar Katamreddy <vkatamre@cisco.com>2019-05-07 13:27:32 -0700
committerDave Barach <openvpp@barachs.net>2019-05-07 23:33:53 +0000
commit72739a60f28d63d43d2840b31fc655f65aa7baf5 (patch)
tree2fd7df6e88b3ef0d3e6e36b957ccb7881dedfc38 /src/vppinfra
parentcefd5d8806b9db7210192f53fdc2b8a60d4dc271 (diff)
bihash: Freeing up working_copy_lengths vector
1)Freeing up working_copy_lengths vector 2)Passing vebososity level to fmt_fn Change-Id: I5e3f541e2f8cc0150105cc35835366f84937bb2e Signed-off-by: Vijayabhaskar Katamreddy <vkatamre@cisco.com>
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/bihash_template.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c
index 9de1df4c59c..a10dee025bf 100644
--- a/src/vppinfra/bihash_template.c
+++ b/src/vppinfra/bihash_template.c
@@ -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
{