con_get_tree_representation: fix memory leak
This commit is contained in:
parent
feef3ea78a
commit
f904511b7e
@ -1992,6 +1992,7 @@ char *con_get_tree_representation(Con *con) {
|
|||||||
(TAILQ_FIRST(&(con->nodes_head)) == child ? "" : " "), child_txt);
|
(TAILQ_FIRST(&(con->nodes_head)) == child ? "" : " "), child_txt);
|
||||||
free(buf);
|
free(buf);
|
||||||
buf = tmp_buf;
|
buf = tmp_buf;
|
||||||
|
free(child_txt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 3) close the brackets */
|
/* 3) close the brackets */
|
||||||
|
Loading…
Reference in New Issue
Block a user