netfilter: nfnl_cthelper: Fix memory leak
authorJeffy Chen <jeffy.chen@rock-chips.com>
Tue, 21 Mar 2017 07:07:10 +0000 (15:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:22:11 +0000 (14:22 +0100)
commitaba55cb03579f10316fe04806c1854bfff1f57d8
treeb51b7447eca1932e9df90c9c317863279af1153e
parentb9fd3306a5afe33fe4ca7fb4d6954475a772a382
netfilter: nfnl_cthelper: Fix memory leak

[ Upstream commit f83bf8da1135ca635aac8f062cad3f001fcf3a26 ]

We have memory leaks of nf_conntrack_helper & expect_policy.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nfnetlink_cthelper.c