]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nftables: Fix a memleak from userdata error path in new objects
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 5 May 2021 21:06:43 +0000 (23:06 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 5 May 2021 21:52:52 +0000 (23:52 +0200)
commit464b1b769590eba9a218271e0af4ebdc48d9213e
treef2598ec20ff4cb379ae877482df9666cb305d4f1
parent369790d39b0816473696a63443632449de842011
netfilter: nftables: Fix a memleak from userdata error path in new objects

Release object name if userdata allocation fails.

Fixes: 56d1146d3f1a ("netfilter: nf_tables: add userdata support for nft_object")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c