From 1f8b6b86dddd8e584cb41a68b2692bdba59ac234 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Sat, 30 Apr 2016 09:13:05 +0200 Subject: Remove premature break --- sway/workspace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sway') 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); -- cgit v1.2.3