diff options
author | Jose M. Guisado Gomez <guigom@riseup.net> | 2020-09-27 11:36:22 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-09-30 12:40:22 +0300 |
commit | bc7a708235f41face74f9746461f94d94e8e33ae (patch) | |
tree | f131094476509cccee0fe1967901cefe86577b54 /net/netfilter/nf_conntrack_snmp.c | |
parent | 18cd9b00fffe416f8c17990519dd80f05b312617 (diff) | |
download | linux-bc7a708235f41face74f9746461f94d94e8e33ae.tar.xz |
netfilter: nf_tables: fix userdata memleak
When userdata was introduced for tables and objects its allocation was
only freed inside the error path of the new{table, object} functions.
Free user data inside corresponding destroy functions for tables and
objects.
Fixes: b131c96496b3 ("netfilter: nf_tables: add userdata support for nft_object")
Fixes: 7a81575b806e ("netfilter: nf_tables: add userdata attributes to nft_table")
Signed-off-by: Jose M. Guisado Gomez <guigom@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_snmp.c')
0 files changed, 0 insertions, 0 deletions