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-restore.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ip6tables-restore.c') diff --git a/ip6tables-restore.c b/ip6tables-restore.c index 1d5efea2..06a82aec 100644 --- a/ip6tables-restore.c +++ b/ip6tables-restore.c @@ -454,5 +454,7 @@ int main(int argc, char *argv[]) exit(1); } + if (in != NULL) + fclose(in); return 0; } -- cgit v1.2.3