From 22278399d39b63cfedf68052dede5b342836191f Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 27 Mar 2014 16:06:06 +0100 Subject: [PATCH] tiling: Free allocated memory on error path. We don't use new_node in this code path. Free before returning. CID 1186205 --- src/modules/tiling/window_tree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/tiling/window_tree.c b/src/modules/tiling/window_tree.c index d43d1aebf..9470bda00 100644 --- a/src/modules/tiling/window_tree.c +++ b/src/modules/tiling/window_tree.c @@ -92,6 +92,7 @@ tiling_window_tree_add(Window_Tree *root, Window_Tree *parent, if (split_type > TILING_SPLIT_VERTICAL) { + free(new_node); return root; } else if (!root)