tree_restore(): fix memory leak
This commit is contained in:
parent
338cb693dc
commit
6f53dc01ef
@ -84,6 +84,7 @@ bool tree_restore(const char *path, xcb_get_geometry_reply_t *geometry) {
|
|||||||
focused = croot;
|
focused = croot;
|
||||||
|
|
||||||
tree_append_json(focused, globbed, NULL);
|
tree_append_json(focused, globbed, NULL);
|
||||||
|
free(globbed);
|
||||||
|
|
||||||
DLOG("appended tree, using new root\n");
|
DLOG("appended tree, using new root\n");
|
||||||
croot = TAILQ_FIRST(&(croot->nodes_head));
|
croot = TAILQ_FIRST(&(croot->nodes_head));
|
||||||
|
Loading…
Reference in New Issue
Block a user