Skip to content

Commit c04a3f7

Browse files
committed
netfilter: nf_tables: release flowtable hooks
Otherwise we leak this array. Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent c8d70a7 commit c04a3f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5423,6 +5423,7 @@ static void nf_tables_flowtable_notify(struct nft_ctx *ctx,
54235423
static void nf_tables_flowtable_destroy(struct nft_flowtable *flowtable)
54245424
{
54255425
cancel_delayed_work_sync(&flowtable->data.gc_work);
5426+
kfree(flowtable->ops);
54265427
kfree(flowtable->name);
54275428
flowtable->data.type->free(&flowtable->data);
54285429
rhashtable_destroy(&flowtable->data.rhashtable);

0 commit comments

Comments
 (0)