aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Daniel Lockyer <thisisdaniellockyer@gmail.com>2016-04-29 18:27:49 +0100
committerLibravatar Daniel Lockyer <thisisdaniellockyer@gmail.com>2016-04-29 18:27:49 +0100
commit01c2b5f2d658c8992d5351c1ef0e2e23a0729fcd (patch)
tree5b11e9651234c140cc9f29777040a904a7d73f15 /sway/config.c
parentsway/config.c: Leading on from cdf017c, we need to free path (diff)
downloadsway-01c2b5f2d658c8992d5351c1ef0e2e23a0729fcd.tar.gz
sway-01c2b5f2d658c8992d5351c1ef0e2e23a0729fcd.tar.zst
sway-01c2b5f2d658c8992d5351c1ef0e2e23a0729fcd.zip
sway/config.c: move free call to after sway_log
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index 41879b87..9ce73ceb 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -267,8 +267,8 @@ 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);
271 sway_log(L_DEBUG, "Set XDG_CONFIG_HOME to %s", config_home); 270 sway_log(L_DEBUG, "Set XDG_CONFIG_HOME to %s", config_home);
271 free(config_home);
272 } 272 }
273 273
274 wordexp_t p; 274 wordexp_t p;