From f2bfb5ead29048ce42000e4796383a4406b069f6 Mon Sep 17 00:00:00 2001 From: James Cloos Date: Fri, 18 Jul 2014 16:33:07 -0400 Subject: [PATCH 1/1] src/util.c: (read_config): Close the FILE *. Savannah bug #40338. Signed-off-by: James Cloos --- ChangeLog | 4 ++++ src/util.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 496a149..b48c3c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-07-18 James Cloos + + * src/util.c: (read_config): Close the FILE *. Savannah bug #40338. + 2012-10-08 Max Cantor * docs/enscript.man: Document how to use new fonts. diff --git a/src/util.c b/src/util.c index 17d89e7..a3814c1 100644 --- 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; } -- 2.17.1