]> git.ipfire.org Git - thirdparty/nftables.git/commit
Fix memleak in netlink_parse_fwd() error path
authorPhil Sutter <phil@nwl.cc>
Fri, 12 Oct 2018 10:54:09 +0000 (12:54 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 15 Oct 2018 11:37:51 +0000 (13:37 +0200)
commit30541cb66e2de38eea04ab28cb14f298cce9d99f
treec1527a8b593fa731606ac3c5e70d56bda2115abd
parent16694bdd4c01ae001b60fbc18d45200fffc84de5
Fix memleak in netlink_parse_fwd() error path

Make sure allocated 'stmt' is freed before returning to caller.

Fixes: 30d45266bf38b ("expr: extend fwd statement to support address and family")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink_delinearize.c