From: Michael Stapelberg Date: Sun, 23 May 2010 22:06:26 +0000 (+0200) Subject: Bugfix: Don’t leak file descriptors (Thanks InfraRed) X-Git-Tag: 3.e-bf1~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23d746004017b41938672063f5db234c1644b74d;p=i3%2Fi3 Bugfix: Don’t leak file descriptors (Thanks InfraRed) --- 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); } %}