aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/workspace.c
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2018-07-04 18:51:21 +0900
committerDominique Martinet <asmadeus@codewreck.org>2018-07-05 08:13:10 +0900
commit9314c45c418c97fa415ef86cf834c3c87499d100 (patch)
treec7e55cf1b9f5e92dc99773ab6320939face4c8d1 /sway/tree/workspace.c
parent785ed4383be2c781748c9f60e2d6460200a1abeb (diff)
workspace_next_name: free targets later than these already found in order
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r--sway/tree/workspace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c
index 2db06a31..51f0fcb4 100644
--- a/sway/tree/workspace.c
+++ b/sway/tree/workspace.c
@@ -191,6 +191,8 @@ char *workspace_next_name(const char *output_name) {
free(target);
target = _target;
wlr_log(L_DEBUG, "Workspace: Found free name %s", _target);
+ } else {
+ free(_target);
}
}
free(dup);