From 34c59adfae98515468ec50c644c30115fee0b97e Mon Sep 17 00:00:00 2001 From: Giuseppe Longo Date: Sat, 8 Jun 2013 03:40:04 +0000 Subject: nft: fix leak of chain iterator in nft_rule_list Signed-off-by: Giuseppe Longo Signed-off-by: Pablo Neira Ayuso --- iptables/nft.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables') diff --git a/iptables/nft.c b/iptables/nft.c index 6a4898dd..1c7c75eb 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -2524,6 +2524,7 @@ next: c = nft_chain_list_iter_next(iter); } + nft_chain_list_iter_destroy(iter); nft_chain_list_free(list); return 1; -- cgit v1.2.3