From 3af52d86f73986e5459444509b53302d400c84b6 Mon Sep 17 00:00:00 2001 From: Antonin Décimo Date: Wed, 7 Aug 2019 16:04:36 +0200 Subject: Fix memory leaks --- sway/commands/bar/tray_bind.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway') 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]); } -- cgit v1.2.3-54-g00ecf