From: Pablo Neira Ayuso Date: Fri, 9 Mar 2018 17:56:26 +0000 (+0100) Subject: netfilter: nf_tables: release flowtable hooks X-Git-Tag: v4.16-rc7~23^2~54^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c04a3f730021c304c7cc4bc30ee57ee70ad98d57;p=uclinux-h8%2Flinux.git netfilter: nf_tables: release flowtable hooks Otherwise we leak this array. Signed-off-by: Pablo Neira Ayuso --- 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);