From f904511b7ec51fc6e8adcf97fef2a7d39049a965 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 9 Jan 2016 14:05:05 +0100 Subject: [PATCH] con_get_tree_representation: fix memory leak --- src/con.c | 1 + 1 file changed, 1 insertion(+) 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 */