From: Dapeng Yu Date: Wed, 28 Jul 2021 06:05:39 +0000 (+0800) Subject: net/softnic: fix memory leak as profile is freed X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b3bc560bd6bdf3c9851d25bc0a66cb24aa1fd48c;p=dpdk.git net/softnic: fix memory leak as profile is freed In function softnic_table_action_profile_free(), the memory referenced by pointer "ap" in the instance of "struct softnic_table_action_profile" is not freed. This patch fixes it. Fixes: a737dd4e5863 ("net/softnic: add table action profile") Cc: stable@dpdk.org Signed-off-by: Dapeng Yu Acked-by: Jasvinder Singh --- diff --git a/drivers/net/softnic/rte_eth_softnic_action.c b/drivers/net/softnic/rte_eth_softnic_action.c index 92c744dc9a..33be9552a6 100644 --- a/drivers/net/softnic/rte_eth_softnic_action.c +++ b/drivers/net/softnic/rte_eth_softnic_action.c @@ -183,6 +183,7 @@ softnic_table_action_profile_free(struct pmd_internals *p) break; TAILQ_REMOVE(&p->table_action_profile_list, profile, node); + rte_table_action_profile_free(profile->ap); free(profile); } }