From 01c2b5f2d658c8992d5351c1ef0e2e23a0729fcd Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 29 Apr 2016 18:27:49 +0100 Subject: [PATCH] sway/config.c: move free call to after sway_log --- sway/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/config.c b/sway/config.c index 41879b874..9ce73ceba 100644 --- a/sway/config.c +++ b/sway/config.c @@ -267,8 +267,8 @@ 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); + free(config_home); } wordexp_t p;