net/bonding: fix memory leak on closing device
authorDapeng Yu <dapengx.yu@intel.com>
Wed, 15 Sep 2021 05:08:02 +0000 (13:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Sep 2021 08:03:12 +0000 (10:03 +0200)
commitccf0f002d2ec5455102c0259f44535944aa4b154
treea21b539e81aabbabed1dae661439c02ac18eba80
parentde4ffd50c92baf76b451deb0ae1f7deb939a844b
net/bonding: fix memory leak on closing device

If the bond device was created by vdev mode, the kvlist was not free
after the bond device was closed.

This patch fixes it.

Fixes: 144dc4739975 ("net/bonding: fix leak on remove")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/bonding/rte_eth_bond_pmd.c