From: Pablo Neira Ayuso Date: Fri, 9 Mar 2018 17:56:26 +0000 (+0100) Subject: netfilter: nf_tables: release flowtable hooks X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c04a3f730021c304c7cc4bc30ee57ee70ad98d57;p=linux.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 558593e6a0a3b..c4acc7340eb10 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);