summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iptables/nft.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/iptables/nft.c b/iptables/nft.c
index cb46b7a4..daa5478a 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -2561,6 +2561,8 @@ next:
c = nft_chain_list_iter_next(iter);
}
+ nft_chain_list_iter_destroy(iter);
+
return 1;
}
@@ -2600,6 +2602,8 @@ int nft_rule_list_save(struct nft_handle *h, const char *chain,
next:
c = nft_chain_list_iter_next(iter);
}
+
+ nft_chain_list_iter_destroy(iter);
err:
nft_chain_list_free(list);