diff options
author | emersion <contact@emersion.fr> | 2018-07-15 22:09:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-15 22:09:04 +0100 |
commit | b314a8f2cc792aa59d8f12e5adb9aed2967af646 (patch) | |
tree | 74468af2643af7ad9315fb983acad8b8f69f8c4b /sway/commands/bar | |
parent | 87334dbccb2c00ab72e96d4b58cf128dfbf8f751 (diff) | |
parent | 9559e3e2afeabc5fd68ee0679ad9b5745c92425b (diff) |
Merge pull request #2280 from ianyfan/leaks
Fix some memory leaks
Diffstat (limited to 'sway/commands/bar')
-rw-r--r-- | sway/commands/bar/position.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/bar/position.c b/sway/commands/bar/position.c index 48e7ddbd..44bb4ae3 100644 --- a/sway/commands/bar/position.c +++ b/sway/commands/bar/position.c @@ -17,6 +17,7 @@ struct cmd_results *bar_cmd_position(int argc, char **argv) { if (strcasecmp(valid[i], argv[0]) == 0) { wlr_log(WLR_DEBUG, "Setting bar position '%s' for bar: %s", argv[0], config->current_bar->id); + free(config->current_bar->position); config->current_bar->position = strdup(argv[0]); return cmd_results_new(CMD_SUCCESS, NULL, NULL); } |