tiling: Free allocated memory on error path.

We don't use new_node in this code path. Free before returning.

CID 1186205
This commit is contained in:
Stefan Schmidt 2014-03-27 16:06:06 +01:00
parent ca07e7d505
commit 22278399d3
1 changed files with 1 additions and 0 deletions

View File

@ -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)