From: Michael Stapelberg Date: Wed, 13 Jul 2011 14:09:30 +0000 (+0200) Subject: fix memory leak X-Git-Tag: 2.3~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e924ce2d1928960494445580498a2788cc40294f;p=i3%2Fi3status fix memory leak --- diff --git a/src/auto_detect_format.c b/src/auto_detect_format.c index b8dfdfc..2df13f5 100644 --- a/src/auto_detect_format.c +++ b/src/auto_detect_format.c @@ -136,6 +136,9 @@ char *auto_detect_format() { } out: + if (parentname) + free(parentname); + closedir(dir); return format;