diff options
author | Antonin Décimo <antonin.decimo@gmail.com> | 2019-08-07 16:04:36 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-08-12 09:42:11 +0900 |
commit | 3af52d86f73986e5459444509b53302d400c84b6 (patch) | |
tree | e4fc42b776a7dc61704d46ed56b2f2f90b3bc2a8 /sway | |
parent | 0570eb19e5cd3d6f4839f3b4fc921e9fbd1f0aa0 (diff) |
Fix memory leaks
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands/bar/tray_bind.c | 1 |
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]); } |