]> git.sur5r.net Git - i3/i3/commitdiff
tree_restore(): fix memory leak
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Jan 2016 11:50:29 +0000 (12:50 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Jan 2016 11:50:38 +0000 (12:50 +0100)
src/tree.c

index 5642c5c78f360148612af684bc1861e236fc9ed2..5a6129ac86e60f2df9107b0522656ec1d876553d 100644 (file)
@@ -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));