diff mbox

fix leak of iter in nft_rule_list

Message ID 20130608134004.4582.54427.stgit@localhost
State Accepted
Headers show

Commit Message

Giuseppe Longo June 8, 2013, 1:40 p.m. UTC
Leak of iter in nft_rule_list function fixed.

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


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

Comments

Pablo Neira Ayuso June 8, 2013, 5:36 p.m. UTC | #1
Applied, thanks Giuseppe.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/iptables/nft.c b/iptables/nft.c
index 5a0b814..7223c79 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -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;