[PATCH] fix leak of iter in nft_rule_list

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

 



Leak of iter in nft_rule_list function 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 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;

--
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