diff options
| author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2021-01-09 20:01:21 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-19 18:26:19 +0100 |
| commit | 935114863364803172354067061708efd131ca57 (patch) | |
| tree | 02f8b763bc306ad3544700c0f0f897b5d621586c /tools/perf/scripts/python/stackcollapse.py | |
| parent | 49fc6d92b484fd7cc75d62d6ee34f9f94a0507cc (diff) | |
netfilter: nf_nat: Fix memleak in nf_nat_init
commit 869f4fdaf4ca7bb6e0d05caf6fa1108dddc346a7 upstream.
When register_pernet_subsys() fails, nf_nat_bysource
should be freed just like when nf_ct_extend_register()
fails.
Fixes: 1cd472bf036ca ("netfilter: nf_nat: add nat hook register functions to nf_nat")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
