diff options
-rw-r--r-- | sway/workspace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/workspace.c b/sway/workspace.c index 17b56416..82573d2e 100644 --- a/sway/workspace.c +++ b/sway/workspace.c @@ -100,10 +100,9 @@ char *workspace_next_name(const char *output_name) { if (binding->order < order) { order = binding->order; + free(target); target = _target; sway_log(L_DEBUG, "Workspace: Found free name %s", _target); - free(dup); - break; } } free(dup); |