提交 c04a3f73 编写于 作者: P Pablo Neira Ayuso

netfilter: nf_tables: release flowtable hooks

Otherwise we leak this array.
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册