Skip to contentSkip to conversation

fix leak of iter in nft_rule_list

PATCH Applied Giuseppe Longo 2 participants 2 messages Jun 8, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix leak of iter in nft_rule_list

Leak of iter in nft_rule_list function fixed.

---
 iptables/nft.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
iptables/nft.c +1 -0
index 5a0b814..7223c79 100644
@@ -2520,6 +2520,7 @@ next:
 		c = nft_chain_list_iter_next(iter);
 	}
 
+	nft_chain_list_iter_destroy(iter);
 	nft_chain_list_free(list);
 
 	return 1;