diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-03-09 20:56:26 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-03-11 23:24:56 +0300 |
commit | c04a3f730021c304c7cc4bc30ee57ee70ad98d57 (patch) | |
tree | c00120332f110a3651694b95c1e960bc06287240 /net | |
parent | c8d70a700a5b486bfa8e5a7d33d805389f6e59f9 (diff) | |
download | linux-c04a3f730021c304c7cc4bc30ee57ee70ad98d57.tar.xz |
netfilter: nf_tables: release flowtable hooks
Otherwise we leak this array.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_tables_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 558593e6a0a3..c4acc7340eb1 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -5423,6 +5423,7 @@ err: static void nf_tables_flowtable_destroy(struct nft_flowtable *flowtable) { cancel_delayed_work_sync(&flowtable->data.gc_work); + kfree(flowtable->ops); kfree(flowtable->name); flowtable->data.type->free(&flowtable->data); rhashtable_destroy(&flowtable->data.rhashtable); |