From 23d746004017b41938672063f5db234c1644b74d Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 24 May 2010 00:06:26 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Don=E2=80=99t=20leak=20file=20descrip?= =?UTF-8?q?tors=20(Thanks=20InfraRed)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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); } %}