mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
Fix memory leak in status_command handler
This commit is contained in:
parent
c988b03d85
commit
ab3a397d58
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ struct cmd_results *bar_cmd_status_command(int argc, char **argv) {
|
|||
config->current_bar->status_command = new_command;
|
||||
wlr_log(WLR_DEBUG, "Feeding bar with status command: %s",
|
||||
config->current_bar->status_command);
|
||||
} else {
|
||||
free(new_command);
|
||||
}
|
||||
|
||||
if (config->active && !config->validating) {
|
||||
|
|
Loading…
Reference in a new issue