]> git.sur5r.net Git - i3/i3status/commitdiff
fix memory leak
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 13 Jul 2011 14:09:30 +0000 (16:09 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 13 Jul 2011 14:09:30 +0000 (16:09 +0200)
src/auto_detect_format.c

index b8dfdfc0231b92ee052fcc62917e37bcb93c76cd..2df13f5f1782cae71fb5b65f1455ec238920af98 100644 (file)
@@ -136,6 +136,9 @@ char *auto_detect_format() {
     }
 
 out:
+    if (parentname)
+        free(parentname);
+
     closedir(dir);
 
     return format;