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) { strcpy(config_home, home); strcat(config_home, "/.config"); setenv("XDG_CONFIG_HOME", config_home, 1); + free(config_home); sway_log(L_DEBUG, "Set XDG_CONFIG_HOME to %s", config_home); }