Fix memory leaks

This commit is contained in:
Antonin Décimo 2019-08-07 16:04:36 +02:00 committed by Drew DeVault
parent 0570eb19e5
commit 3af52d86f7
2 changed files with 2 additions and 0 deletions

View file

@ -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]);
}