diff options
author | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2016-04-29 18:06:21 +0100 |
---|---|---|
committer | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2016-04-29 18:06:21 +0100 |
commit | c225bcaceeda6902a56481962398f5a528bcdf74 (patch) | |
tree | 66a14a5e3753bff6ea05e7688f1ef492fea09f0c | |
parent | common/stringop.c: a premature decrement meant an element of argv was never r... (diff) | |
download | sway-c225bcaceeda6902a56481962398f5a528bcdf74.tar.gz sway-c225bcaceeda6902a56481962398f5a528bcdf74.tar.zst sway-c225bcaceeda6902a56481962398f5a528bcdf74.zip |
sway/config.c: config_home is the result of a malloc but was never freed
-rw-r--r-- | sway/config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index ebcee95b..06654223 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -267,6 +267,7 @@ static char *get_config_path(void) { | |||
267 | strcpy(config_home, home); | 267 | strcpy(config_home, home); |
268 | strcat(config_home, "/.config"); | 268 | strcat(config_home, "/.config"); |
269 | setenv("XDG_CONFIG_HOME", config_home, 1); | 269 | setenv("XDG_CONFIG_HOME", config_home, 1); |
270 | free(config_home); | ||
270 | sway_log(L_DEBUG, "Set XDG_CONFIG_HOME to %s", config_home); | 271 | sway_log(L_DEBUG, "Set XDG_CONFIG_HOME to %s", config_home); |
271 | } | 272 | } |
272 | 273 | ||