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: 4.0~76 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0c60ae19cb7a6a16e8287090eaa629749cfed957;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); } %}