]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Close /etc/hosts filedescriptor after parsing.
authorrobertc <>
Sat, 8 Feb 2003 09:32:53 +0000 (09:32 +0000)
committerrobertc <>
Sat, 8 Feb 2003 09:32:53 +0000 (09:32 +0000)
Keywords:

Close /etc/hosts filedescriptor after parsing.

src/tools.cc

index c9f9878bf49c9c4e5778cced2c910e9886ed5ed5..e206ea4007e1b3da60d4614595066a90a47314b9 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.230 2003/01/23 00:37:27 robertc Exp $
+ * $Id: tools.cc,v 1.231 2003/02/08 02:32:53 robertc Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -996,6 +996,7 @@ parseEtcHosts(void)
       skip:
        wordlistDestroy(&hosts);
     }
+    fclose (fp);
 }
 
 int