From: Michael Stapelberg Date: Sat, 9 Jan 2016 13:05:05 +0000 (+0100) Subject: con_get_tree_representation: fix memory leak X-Git-Tag: 4.12~48 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f904511b7ec51fc6e8adcf97fef2a7d39049a965;p=i3%2Fi3 con_get_tree_representation: fix memory leak --- diff --git a/src/con.c b/src/con.c index 51b2a3f6..a3a2f2e3 100644 --- a/src/con.c +++ b/src/con.c @@ -1992,6 +1992,7 @@ char *con_get_tree_representation(Con *con) { (TAILQ_FIRST(&(con->nodes_head)) == child ? "" : " "), child_txt); free(buf); buf = tmp_buf; + free(child_txt); } /* 3) close the brackets */