aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 12a02163..d3040a67 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -583,6 +583,8 @@ bool read_config(FILE *file, struct sway_config *config) {
}
char *expanded = expand_line(block, line, brace_detected > 0);
if (!expanded) {
+ list_foreach(stack, free);
+ list_free(stack);
return false;
}
wlr_log(L_DEBUG, "Expanded line: %s", expanded);