tree_restore(): fix memory leak

This commit is contained in:
Michael Stapelberg 2016-01-09 12:50:29 +01:00
parent 338cb693dc
commit 6f53dc01ef
1 changed files with 1 additions and 0 deletions

View File

@ -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));