summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-07-15 21:48:39 +0100
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-07-15 21:48:39 +0100
commit92450883d7b148d408b42c3553a60340a14771f6 (patch)
tree7dab6752e31adfe066b9102d1d699c649818dc3c
parentbar: free old position when changing (diff)
downloadsway-92450883d7b148d408b42c3553a60340a14771f6.tar.gz
sway-92450883d7b148d408b42c3553a60340a14771f6.tar.zst
sway-92450883d7b148d408b42c3553a60340a14771f6.zip
config: free include path on successful load
-rw-r--r--sway/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 2c051146..f63835bf 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -474,6 +474,7 @@ static bool load_include_config(const char *path, const char *parent_dir,
474 list_del(config->config_chain, index); 474 list_del(config->config_chain, index);
475 return false; 475 return false;
476 } 476 }
477 free(real_path);
477 478
478 // restore current_config_path 479 // restore current_config_path
479 config->current_config_path = parent_config; 480 config->current_config_path = parent_config;