mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 14:04:11 +01:00
Fix memory leak in status_command handler
This commit is contained in:
parent
c988b03d85
commit
ab3a397d58
@ -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 New Issue
Block a user