netfilter: nf_tables: free flow table struct too
Fixes: 3b49e2e94e
("netfilter: nf_tables: add flow table netlink frontend")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
b8088dda98
commit
a12486ebe1
|
@ -5784,6 +5784,7 @@ static void nf_tables_flowtable_destroy(struct nft_flowtable *flowtable)
|
||||||
kfree(flowtable->name);
|
kfree(flowtable->name);
|
||||||
flowtable->data.type->free(&flowtable->data);
|
flowtable->data.type->free(&flowtable->data);
|
||||||
module_put(flowtable->data.type->owner);
|
module_put(flowtable->data.type->owner);
|
||||||
|
kfree(flowtable);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int nf_tables_fill_gen_info(struct sk_buff *skb, struct net *net,
|
static int nf_tables_fill_gen_info(struct sk_buff *skb, struct net *net,
|
||||||
|
|
Loading…
Reference in New Issue