]> git.ipfire.org Git - thirdparty/nftables.git/commit
trace: Fix for memleak in trace_alloc_list() error path
authorPhil Sutter <phil@nwl.cc>
Tue, 26 Aug 2025 10:57:37 +0000 (12:57 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 26 Aug 2025 13:27:18 +0000 (15:27 +0200)
commitfdbb0ec57b5c891c1de17f367b693ab787ea9c2d
tree4123fae4c60b5d3da82e272359c101fe3d943541
parent428462077f415fe49619ec5d6cbf7477ee5359bc
trace: Fix for memleak in trace_alloc_list() error path

The allocated 'list_expr' may leak.

Fixes: cfd768615235b ("src: add conntrack information to trace monitor mode")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/trace.c