Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

netfilter: nf_tables: release flowtable hooks



Otherwise we leak this array.

Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent c8d70a70
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);