]> git.sur5r.net Git - i3/i3/commitdiff
Don't leak this descriptor (thanks dothebart).
authorFernando Tarlá Cardoso Lemos <fernandotcl@gmail.com>
Sun, 27 Feb 2011 23:23:54 +0000 (20:23 -0300)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 28 Feb 2011 15:49:10 +0000 (16:49 +0100)
Note that fclose closes the file descriptor frees the stream.

src/cfgparse.y

index c93c33e6fff1e8f7001dc295131f6242e28c69e4..d3a5ecda0a55688b2da01cc461665fd4d5a423ad 100644 (file)
@@ -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. */