summaryrefslogtreecommitdiffstats
path: root/iptables-save.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-06-10 13:52:58 +0200
committerJan Engelhardt <jengelh@medozas.de>2009-06-10 20:29:59 +0200
commitf1afcc896e7f8be3a6419681fd8cdee1d600a3aa (patch)
tree98b0d09be16f3e552251c4f28cb7efc6447c8e51 /iptables-save.c
parenta3726818e07d47136010f09762637a3e597329e3 (diff)
iptables: close open file descriptors
Just for correctness, close some file descriptors that were opened. (E.g. ip6tables-save reading from procfs files.) Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'iptables-save.c')
-rw-r--r--iptables-save.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables-save.c b/iptables-save.c
index 6000b494..f63ee6b1 100644
--- a/iptables-save.c
+++ b/iptables-save.c
@@ -52,6 +52,7 @@ static int for_each_table(int (*func)(const char *tablename))
ret &= func(tablename);
}
+ fclose(procfile);
return ret;
}