con_get_tree_representation: fix memory leak

next
Michael Stapelberg 2016-01-09 14:05:05 +01:00
parent feef3ea78a
commit f904511b7e
1 changed files with 1 additions and 0 deletions

View File

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