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 */