aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/commands/bar/tray_bind.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/bar/tray_bind.c b/sway/commands/bar/tray_bind.c
index c910d106..243834ba 100644
--- a/sway/commands/bar/tray_bind.c
+++ b/sway/commands/bar/tray_bind.c
@@ -52,6 +52,7 @@ static struct cmd_results *tray_bind(int argc, char **argv, bool code) {
}
}
if (!binding->command) {
+ free(binding);
return cmd_results_new(CMD_INVALID, "[Bar %s] Invalid tray command %s",
config->current_bar->id, argv[1]);
}