diff options
author | 2018-10-08 15:21:20 +0200 | |
---|---|---|
committer | 2018-10-08 15:21:20 +0200 | |
commit | ab3a397d58898045c3461bbdca8f48361ccfb8f4 (patch) | |
tree | e69a87ace29016b0d331e811f0e24de6657e2c90 /sway | |
parent | Allow swaybg to be disabled (diff) | |
download | sway-ab3a397d58898045c3461bbdca8f48361ccfb8f4.tar.gz sway-ab3a397d58898045c3461bbdca8f48361ccfb8f4.tar.zst sway-ab3a397d58898045c3461bbdca8f48361ccfb8f4.zip |
Fix memory leak in status_command handler
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands/bar/status_command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/bar/status_command.c b/sway/commands/bar/status_command.c index 5ea22525..5b4fdc87 100644 --- a/sway/commands/bar/status_command.c +++ b/sway/commands/bar/status_command.c | |||
@@ -20,6 +20,8 @@ struct cmd_results *bar_cmd_status_command(int argc, char **argv) { | |||
20 | config->current_bar->status_command = new_command; | 20 | config->current_bar->status_command = new_command; |
21 | wlr_log(WLR_DEBUG, "Feeding bar with status command: %s", | 21 | wlr_log(WLR_DEBUG, "Feeding bar with status command: %s", |
22 | config->current_bar->status_command); | 22 | config->current_bar->status_command); |
23 | } else { | ||
24 | free(new_command); | ||
23 | } | 25 | } |
24 | 26 | ||
25 | if (config->active && !config->validating) { | 27 | if (config->active && !config->validating) { |