]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: fix leaking typeof_expr_data/typeof_expr_key in netlink_delinearize_set()
authorThomas Haller <thaller@redhat.com>
Thu, 14 Sep 2023 14:09:50 +0000 (16:09 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 19 Sep 2023 15:26:27 +0000 (17:26 +0200)
commita76c8960905ef6803c0c79df7bc0a030209c9455
tree685ed0a942f6e8b5724791989acf171f201bf56e
parent6d19a902c1d77cb51b940b1ce65f31b1cad38b74
netlink: fix leaking typeof_expr_data/typeof_expr_key in netlink_delinearize_set()

There are various code paths that return without freeing typeof_expr_data
and typeof_expr_key. It's not at all obvious, that there isn't a leak
that way. Quite possibly there is a leak. Fix it, or at least make the
code more obviously correct.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c