diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-11 03:26:12 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-02-11 10:10:48 +0100 |
commit | d2c896ed84534f5c4dc7e8c30c3e92be4081fab1 (patch) | |
tree | e1de3ad589e623ec08b7391a2172ee97a50b4263 /sway/config/bar.c | |
parent | a64a3ee6bbd3b880c32bbd9c9a38420d04748dd2 (diff) |
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
Diffstat (limited to 'sway/config/bar.c')
-rw-r--r-- | sway/config/bar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c index bafef307..2e28fa1e 100644 --- a/sway/config/bar.c +++ b/sway/config/bar.c @@ -46,6 +46,7 @@ void free_bar_config(struct bar_config *bar) { free(bar->position); free(bar->hidden_state); free(bar->status_command); + free(bar->swaybar_command); free(bar->font); free(bar->separator_symbol); for (int i = 0; i < bar->bindings->length; i++) { |