From 75774a04212afd9719c99114699867777bf1be30 Mon Sep 17 00:00:00 2001 From: "ardi@ist-einmalig.de" Date: Mon, 25 May 2009 19:10:13 +0000 Subject: [PATCH] closes cfg-files after reading --- source/cfg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/cfg.c b/source/cfg.c index 062e0753..c0db7bfb 100644 --- a/source/cfg.c +++ b/source/cfg.c @@ -947,6 +947,7 @@ bool cfg_parsefile(char *fname, void (*set_func)(char*, char*)) if (line[0] == '#') continue; cfg_parseline(line, set_func); } + fclose(f); return true; } @@ -967,6 +968,7 @@ bool cfg_parsetitlefile(char *fname, void (*set_func)(char*, char*, u8)) if (line[0] == '#') continue; cfg_parsetitleline(line, set_func); } + fclose(f); return true; }