From: Michael Stapelberg Date: Sat, 23 Jul 2011 20:11:01 +0000 (+0200) Subject: Bugfix: Don’t leak file descriptor X-Git-Tag: 4.0~14^2~90 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=370715d1a86dda0b388927b092d739c4943672b2;p=i3%2Fi3 Bugfix: Don’t leak file descriptor --- diff --git a/src/cfgparse.y b/src/cfgparse.y index dac63b95..f9d4ef35 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -369,6 +369,7 @@ void parse_file(const char *f) { } } fclose(fstr); + close(fd); /* For every custom variable, see how often it occurs in the file and * how much extra bytes it requires when replaced. */