net/softnic: fix memory leak of meter policy
authorDapeng Yu <dapengx.yu@intel.com>
Thu, 14 Oct 2021 02:12:07 +0000 (10:12 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Oct 2021 20:45:19 +0000 (22:45 +0200)
commit287ca31bea159a35ee755e1e75900203945dc536
tree626eb1ae84a91a549f8183820e503f9b5990abd9
parentb314a4a664266f691167c29de6bc5ce728346c02
net/softnic: fix memory leak of meter policy

After the meter policies are created, they are not freed on device
close.

This patch fixes it.

Fixes: 5f0d54f372f0 ("ethdev: add pre-defined meter policy API")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
drivers/net/softnic/rte_eth_softnic_meter.c