From 6f53dc01ef8d4840672d58ab75fd4b933a744c03 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 9 Jan 2016 12:50:29 +0100 Subject: [PATCH] tree_restore(): fix memory leak --- src/tree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tree.c b/src/tree.c index 5642c5c7..5a6129ac 100644 --- a/src/tree.c +++ b/src/tree.c @@ -84,6 +84,7 @@ bool tree_restore(const char *path, xcb_get_geometry_reply_t *geometry) { focused = croot; tree_append_json(focused, globbed, NULL); + free(globbed); DLOG("appended tree, using new root\n"); croot = TAILQ_FIRST(&(croot->nodes_head));