diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-06-10 13:52:58 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-06-10 20:29:59 +0200 |
commit | f1afcc896e7f8be3a6419681fd8cdee1d600a3aa (patch) | |
tree | 98b0d09be16f3e552251c4f28cb7efc6447c8e51 /ip6tables-save.c | |
parent | a3726818e07d47136010f09762637a3e597329e3 (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 'ip6tables-save.c')
-rw-r--r-- | ip6tables-save.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ip6tables-save.c b/ip6tables-save.c index 97205c1c..c59608fb 100644 --- a/ip6tables-save.c +++ b/ip6tables-save.c @@ -54,6 +54,7 @@ static int for_each_table(int (*func)(const char *tablename)) ret &= func(tablename); } + fclose(procfile); return ret; } |