]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t leak file descriptors (Thanks InfraRed)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 23 May 2010 22:06:26 +0000 (00:06 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 23 May 2010 22:06:26 +0000 (00:06 +0200)
src/cfgparse.y

index 2774f05ca6be014812ec464cde077c6ee4d4d1d1..234e8fa7fbda1521a405394d5bd23217e84e5e83 100644 (file)
@@ -184,6 +184,8 @@ void parse_file(const char *f) {
                 SLIST_REMOVE_HEAD(&variables, variables);
                 FREE(current);
         }
+        fclose(fstr);
+        close(fd);
 }
 
 %}