mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
fix misc memory leaks
This fixes a few misc memory leaks reported by asan: - Items of `config->config_chain` are now freed instead of just the list itself - `bar->swaybar_command` is now freed - The result returned by a seat subcommand is now returned instead of leaked
This commit is contained in:
parent
a64a3ee6bb
commit
d2c896ed84
3 changed files with 3 additions and 2 deletions
|
|
@ -50,5 +50,5 @@ struct cmd_results *cmd_seat(int argc, char **argv) {
|
|||
}
|
||||
|
||||
config->handler_context.seat_config = NULL;
|
||||
return cmd_results_new(CMD_SUCCESS, NULL);
|
||||
return res ? res : cmd_results_new(CMD_SUCCESS, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue