From: Michael Stapelberg Date: Sat, 9 Jan 2016 11:50:29 +0000 (+0100) Subject: tree_restore(): fix memory leak X-Git-Tag: 4.12~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6f53dc01ef8d4840672d58ab75fd4b933a744c03;p=i3%2Fi3 tree_restore(): fix memory leak --- 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));