git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51799b4
)
net/softnic: fix memory leak as profile is freed
author
Dapeng Yu
<dapengx.yu@intel.com>
Wed, 28 Jul 2021 06:05:39 +0000
(14:05 +0800)
committer
Thomas Monjalon
<thomas@monjalon.net>
Fri, 30 Jul 2021 11:58:31 +0000
(13:58 +0200)
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 <dapengx.yu@intel.com>
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
drivers/net/softnic/rte_eth_softnic_action.c
patch
|
blob
|
history
diff --git
a/drivers/net/softnic/rte_eth_softnic_action.c
b/drivers/net/softnic/rte_eth_softnic_action.c
index
92c744d
..
33be955
100644
(file)
--- 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);
}
}