commit 92450883d7b148d408b42c3553a60340a14771f6
parent ba8981e44bd6cceedd3d32a2e6af947ba791be48
Author: Ian Fan <ianfan0@gmail.com>
Date: Sun, 15 Jul 2018 21:48:39 +0100
config: free include path on successful load
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/sway/config.c b/sway/config.c
@@ -474,6 +474,7 @@ static bool load_include_config(const char *path, const char *parent_dir,
list_del(config->config_chain, index);
return false;
}
+ free(real_path);
// restore current_config_path
config->current_config_path = parent_config;