summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-save.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-08-23 17:43:24 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-24 10:05:51 +0200
commit6a46ca09aef110717e99293696761ebed1cd9596 (patch)
treec11e6fa0a697103d4c9f62d2de0b4eaca150afd9 /iptables/xtables-save.c
parentacde6be32036f36122c31afbfca4828b2790e05d (diff)
xtables: Add a few missing exit calls
Mostly to reduce noise from valgrind output, add missing calls to destroy iterators in nft.c and add cleanup for the populated nft_handle in xtables_eb_save_main(). Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-save.c')
-rw-r--r--iptables/xtables-save.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/xtables-save.c b/iptables/xtables-save.c
index fc51fcfe..182ae13c 100644
--- a/iptables/xtables-save.c
+++ b/iptables/xtables-save.c
@@ -285,6 +285,7 @@ int xtables_eb_save_main(int argc_, char *argv_[])
}
nft_for_each_table(&h, __ebt_save, !!ctr);
+ nft_fini(&h);
return 0;
}