[PATCH 2/2] nft: mem leak in nft_rule_list_cb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Memory leak in function nft_rule_list_cb fixed.

Signed-off-by: Giuseppe Longo <giuseppelng@xxxxxxxxx>
---
 iptables/nft.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/iptables/nft.c b/iptables/nft.c
index 680b2f0..98d602c 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -1140,6 +1140,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;
 }

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux