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 --- iptables-save.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables-save.c') 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; } -- cgit v1.2.3