]> git.ipfire.org Git - thirdparty/nftables.git/commit
mnl: dump_nf_hooks() leaks memory in error path
authorPhil Sutter <phil@nwl.cc>
Wed, 11 Jan 2023 11:28:15 +0000 (12:28 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 13 Jan 2023 16:11:18 +0000 (17:11 +0100)
commitef66f321e49b337c7e678bb90d6acb94f331dfc4
tree1617c2eddd74a12f26b4ce041144371698c82e98
parentdb6e97bd667bf205cee22049f9d0fd6550cb43a7
mnl: dump_nf_hooks() leaks memory in error path

Have to free the basehook object before returning to caller.

Fixes: 4694f7230195b ("src: add support for base hook dumping")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/mnl.c