From: Giuseppe Longo Date: Tue, 25 Jun 2013 07:46:17 +0000 (+0200) Subject: nft: fix another memleak in nft_rule_list_cb X-Git-Tag: v1.6.0~111^2~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=137cc981906f356c971da6de13e777a419382ff4;p=thirdparty%2Fiptables.git nft: fix another memleak in nft_rule_list_cb Signed-off-by: Giuseppe Longo Signed-off-by: Pablo Neira Ayuso --- diff --git a/iptables/nft.c b/iptables/nft.c index 7fa00741..e660878c 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -1144,6 +1144,7 @@ static int nft_rule_list_cb(const struct nlmsghdr *nlh, void *data) return MNL_CB_OK; out: nft_rule_free(r); + nft_rule_list_free(list); err: return MNL_CB_OK; }