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-xml.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iptables-xml.c') diff --git a/iptables-xml.c b/iptables-xml.c index e5d19419..daf42084 100644 --- a/iptables-xml.c +++ b/iptables-xml.c @@ -870,6 +870,8 @@ main(int argc, char *argv[]) exit(1); } + if (in != NULL) + fclose(in); printf("\n"); free_argv(); -- cgit v1.2.3