From: Fernando Tarlá Cardoso Lemos Date: Sun, 27 Feb 2011 23:23:54 +0000 (-0300) Subject: Don't leak this descriptor (thanks dothebart). X-Git-Tag: tree-pr2~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=beaa85ceb94ea43bde5acc7c403f8fc314929273;p=i3%2Fi3 Don't leak this descriptor (thanks dothebart). Note that fclose closes the file descriptor frees the stream. --- diff --git a/src/cfgparse.y b/src/cfgparse.y index c93c33e6..d3a5ecda 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -101,6 +101,7 @@ void parse_file(const char *f) { continue; } } + fclose(fstr); /* For every custom variable, see how often it occurs in the file and * how much extra bytes it requires when replaced. */