net/bnxt: fix memory leak when freeing VF info
authorYunjian Wang <wangyunjian@huawei.com>
Fri, 31 Jul 2020 12:08:55 +0000 (20:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:07 +0000 (18:55 +0200)
commit9fb9a94caf48754e7643f32a5c419007c601d9f1
tree1996285e5aa8f230f87eb24cbb906e5e965cdd0d
parent818129790fc45bc2082d0702918c2230725db2e5
net/bnxt: fix memory leak when freeing VF info

When freeing a vf_info, we should free the 'vlan_as_table'
and 'vlan_table' for the vf_info.

Fixes: b7778e8a1c00 ("net/bnxt: refactor to properly allocate resources for PF/VF")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_hwrm.c
drivers/net/bnxt/bnxt_hwrm.h