summaryrefslogtreecommitdiff
path: root/lib/hash
diff options
context:
space:
mode:
authorJun Qiu <[email protected]>2022-11-04 09:51:23 +0000
committerDavid Marchand <[email protected]>2022-11-14 11:03:54 +0100
commitbdd0c62c69b2b3c07e65d66daa7c564280e72480 (patch)
tree9b57b4cf9d4474aeeac5961d0df1fc9a42d1d26b /lib/hash
parent08aa805a0b81e5167fe041be83d3c684916fbba2 (diff)
hash: fix RCU configuration memory leak
The memory of h->hash_rcu_cfg which is allocated in rte_hash_rcu_qsbr_add was leaked. Fixes: 769b2de7fb52 ("hash: implement RCU resources reclamation") Cc: [email protected] Signed-off-by: Jun Qiu <[email protected]> Reviewed-by: David Marchand <[email protected]>
Diffstat (limited to 'lib/hash')
-rw-r--r--lib/hash/rte_cuckoo_hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hash/rte_cuckoo_hash.c b/lib/hash/rte_cuckoo_hash.c
index 62c762439a..829b79c89a 100644
--- a/lib/hash/rte_cuckoo_hash.c
+++ b/lib/hash/rte_cuckoo_hash.c
@@ -521,6 +521,7 @@ rte_hash_free(struct rte_hash *h)
rte_free(h->buckets_ext);
rte_free(h->tbl_chng_cnt);
rte_free(h->ext_bkt_to_free);
+ rte_free(h->hash_rcu_cfg);
rte_free(h);
rte_free(te);
}