Fix memory leak in status_command handler

This commit is contained in:
emersion 2018-10-08 15:21:20 +02:00
parent c988b03d85
commit ab3a397d58

View file

@ -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) {