netfilter: cthelper: fix leak in nfnl_cthelper_del()
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 1/1 netfilter: cthelper: fix leak in nfnl_cthelper_del()
Release the helper object and the expect_policy.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- net/netfilter/nfnetlink_cthelper.c | 2 ++ 1 file changed, 2 insertions(+)
net/netfilter/nfnetlink_cthelper.c +2 -0
@@ -609,6 +609,8 @@ static int nfnl_cthelper_del(struct net *net, struct sock *nfnl, found = true;nf_conntrack_helper_unregister (cur); +kfree (cur->expect_policy); +kfree (cur); } }/* Make sure we return success if we flush and there is no helpers */
Signature · 1 line
2.1.4