summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 1973de02..c362f388 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -174,9 +174,11 @@ static char *get_config_path(void) {
174 if (wordexp(config_paths[i], &p, 0) == 0) { 174 if (wordexp(config_paths[i], &p, 0) == 0) {
175 path = p.we_wordv[0]; 175 path = p.we_wordv[0];
176 if (file_exists(path)) { 176 if (file_exists(path)) {
177 wordfree(&p);
177 return path; 178 return path;
178 } 179 }
179 } 180 }
181 wordfree(&p);
180 } 182 }
181 183
182 return NULL; // Not reached 184 return NULL; // Not reached