src/util.c: (read_config): Close the FILE *. - enscript - GNU Enscript
HTML git clone git://thinkerwim.org/enscript.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit f2bfb5ead29048ce42000e4796383a4406b069f6
DIR parent 4f866dafab328a5bc882e8efbb13d3af0b7eb570
HTML Author: James Cloos <cloos@jhcloos.com>
Date: Fri, 18 Jul 2014 16:33:07 -0400
src/util.c: (read_config): Close the FILE *.
Savannah bug #40338.
Signed-off-by: James Cloos <cloos@jhcloos.com>
Diffstat:
M ChangeLog | 4 ++++
M src/util.c | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
---
DIR diff --git 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.
DIR diff --git a/src/util.c b/src/util.c
@@ -440,6 +440,7 @@ read_config (char *path, char *file)
CFG_FATAL ((stderr, _("illegal option: %s"), token));
}
+ fclose (fp);
buffer_uninit (&fname);
return 1;
}