diff options
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c index 18fb69d9..455d20cd 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -574,7 +574,13 @@ bool load_include_configs(const char *path, struct sway_config *config, | |||
574 | char **w = p.we_wordv; | 574 | char **w = p.we_wordv; |
575 | size_t i; | 575 | size_t i; |
576 | for (i = 0; i < p.we_wordc; ++i) { | 576 | for (i = 0; i < p.we_wordc; ++i) { |
577 | load_include_config(w[i], parent_dir, config, swaynag); | 577 | bool found = load_include_config(w[i], parent_dir, config, swaynag); |
578 | if (!found) { | ||
579 | wordfree(&p); | ||
580 | free(parent_path); | ||
581 | free(wd); | ||
582 | return false; | ||
583 | } | ||
578 | } | 584 | } |
579 | free(parent_path); | 585 | free(parent_path); |
580 | wordfree(&p); | 586 | wordfree(&p); |