Commit c04a3f73 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nf_tables: release flowtable hooks

Otherwise we leak this array.
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent c8d70a70
......@@ -5423,6 +5423,7 @@ static void nf_tables_flowtable_notify(struct nft_ctx *ctx,
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment