From 0c60ae19cb7a6a16e8287090eaa629749cfed957 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 24 May 2010 00:06:26 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20leak=20file=20descript?= =?utf8?q?ors=20(Thanks=20InfraRed)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cfgparse.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cfgparse.y b/src/cfgparse.y index 2774f05c..234e8fa7 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -184,6 +184,8 @@ void parse_file(const char *f) { SLIST_REMOVE_HEAD(&variables, variables); FREE(current); } + fclose(fstr); + close(fd); } %} -- 2.39.5