discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=c597ed69fda7e275bff354dc2ea3081aeb6a41a2

commit c597ed69fda7e275bff354dc2ea3081aeb6a41a2
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Aug 25 14:47:05 2017 -0400

    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);
           }
 

-- 


Reply via email to