From f1afcc896e7f8be3a6419681fd8cdee1d600a3aa Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 10 Jun 2009 13:52:58 +0200 Subject: 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 --- ip6tables-save.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ip6tables-save.c') 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; } -- cgit v1.2.3