mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05:00
sway/config.c: config_home is the result of a malloc but was never freed
This commit is contained in:
parent
235cfd93b2
commit
c225bcacee
1 changed files with 1 additions and 0 deletions
|
|
@ -267,6 +267,7 @@ static char *get_config_path(void) {
|
||||||
strcpy(config_home, home);
|
strcpy(config_home, home);
|
||||||
strcat(config_home, "/.config");
|
strcat(config_home, "/.config");
|
||||||
setenv("XDG_CONFIG_HOME", config_home, 1);
|
setenv("XDG_CONFIG_HOME", config_home, 1);
|
||||||
|
free(config_home);
|
||||||
sway_log(L_DEBUG, "Set XDG_CONFIG_HOME to %s", config_home);
|
sway_log(L_DEBUG, "Set XDG_CONFIG_HOME to %s", config_home);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue