src/util.c: (read_config): Close the FILE *.
authorJames Cloos <cloos@jhcloos.com>
Fri, 18 Jul 2014 20:33:07 +0000 (16:33 -0400)
committerJames Cloos <cloos@jhcloos.com>
Fri, 18 Jul 2014 20:33:07 +0000 (16:33 -0400)
Savannah bug #40338.

Signed-off-by: James Cloos <cloos@jhcloos.com>
ChangeLog
src/util.c

index 496a149..b48c3c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-07-18  James Cloos  <cloos@jhcloos.com>
+
+       * src/util.c: (read_config): Close the FILE *. Savannah bug #40338.
+
 2012-10-08  Max Cantor  <max@maxcantor.net>
 
        * docs/enscript.man: Document how to use new fonts.
index 17d89e7..a3814c1 100644 (file)
@@ -440,6 +440,7 @@ read_config (char *path, char *file)
        CFG_FATAL ((stderr, _("illegal option: %s"), token));
     }
 
+  fclose (fp);
   buffer_uninit (&fname);
   return 1;
 }