From c597ed69fda7e275bff354dc2ea3081aeb6a41a2 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 25 Aug 2017 14:47:05 -0400 Subject: [PATCH] prevent leak on tiling insert failure CID 1379940 --- 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 b64a18889..fab456322 100644 --- a/src/modules/tiling/window_tree.c +++ b/src/modules/tiling/window_tree.c @@ -130,6 +130,7 @@ tiling_window_tree_insert(Window_Tree *root, Window_Tree *buddy, else { //make sure this buddy has a client, + if (!buddy->client) free(new_node); EINA_SAFETY_ON_TRUE_RETURN_VAL(!buddy->client, root); }