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: 769b2de7fb ("hash: implement RCU resources reclamation")
Cc: stable@dpdk.org

Signed-off-by: Jun Qiu <jun.qiu@jaguarmicro.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
Jun Qiu 2022-11-04 09:51:23 +00:00 committed by David Marchand
parent 08aa805a0b
commit bdd0c62c69

View File

@ -521,6 +521,7 @@ rte_hash_free(struct rte_hash *h)
rte_free(h->buckets_ext); rte_free(h->buckets_ext);
rte_free(h->tbl_chng_cnt); rte_free(h->tbl_chng_cnt);
rte_free(h->ext_bkt_to_free); rte_free(h->ext_bkt_to_free);
rte_free(h->hash_rcu_cfg);
rte_free(h); rte_free(h);
rte_free(te); rte_free(te);
} }