summaryrefslogtreecommitdiffstats
path: root/iptables/iptables-standalone.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables/iptables-standalone.c')
-rw-r--r--iptables/iptables-standalone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/iptables-standalone.c b/iptables/iptables-standalone.c
index c211fb73..0f263f6f 100644
--- a/iptables/iptables-standalone.c
+++ b/iptables/iptables-standalone.c
@@ -53,10 +53,8 @@ iptables_main(int argc, char *argv[])
iptables_globals.program_version);
exit(1);
}
-#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
init_extensions();
init_extensions4();
-#endif
ret = do_command4(argc, argv, &table, &handle, false);
if (ret) {
@@ -64,6 +62,8 @@ iptables_main(int argc, char *argv[])
iptc_free(handle);
}
+ xtables_fini();
+
if (!ret) {
if (errno == EINVAL) {
fprintf(stderr, "iptables: %s. "