diff options
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c index fcd60de7..53fc860a 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -131,6 +131,7 @@ static char *get_config_path() { | |||
131 | strcpy(test, paths->items[i]); | 131 | strcpy(test, paths->items[i]); |
132 | strcat(test, name); | 132 | strcat(test, name); |
133 | if (exists(test)) { | 133 | if (exists(test)) { |
134 | free_config(temp_config); | ||
134 | free_flat_list(paths); | 135 | free_flat_list(paths); |
135 | return test; | 136 | return test; |
136 | } | 137 | } |
@@ -225,7 +226,7 @@ bool read_config(FILE *file, bool is_active) { | |||
225 | success = false; | 226 | success = false; |
226 | temp_config->failed = true; | 227 | temp_config->failed = true; |
227 | } | 228 | } |
228 | list_free(args); | 229 | free_flat_list(args); |
229 | 230 | ||
230 | _continue: | 231 | _continue: |
231 | if (line && line[strlen(line) - 1] == '{') { | 232 | if (line && line[strlen(line) - 1] == '{') { |