From beaa85ceb94ea43bde5acc7c403f8fc314929273 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fernando=20Tarl=C3=A1=20Cardoso=20Lemos?= Date: Sun, 27 Feb 2011 20:23:54 -0300 Subject: [PATCH] Don't leak this descriptor (thanks dothebart). Note that fclose closes the file descriptor frees the stream. --- src/cfgparse.y | 1 + 1 file changed, 1 insertion(+) 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. */ -- 2.39.5