mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Fix memory leaks
This commit is contained in:
parent
9e5664e997
commit
64cfe746ab
2 changed files with 2 additions and 0 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue