diff options
author | taiyu <[email protected]> | 2015-08-23 19:09:18 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-08-23 19:09:18 -0700 |
commit | c8415d7fef53a9efa776dcbbaa2c9c2d76ff8b49 (patch) | |
tree | 6316fab4aff82a5f3a6dbba2dc4057dd2a2d880d /sway/config.c | |
parent | 9a7f48f87272dea8cb1e678673b2fe95dc993d68 (diff) |
split_string memory leaks cleanedup
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() { strcpy(test, paths->items[i]); strcat(test, name); if (exists(test)) { + free_config(temp_config); free_flat_list(paths); return test; } @@ -225,7 +226,7 @@ bool read_config(FILE *file, bool is_active) { success = false; temp_config->failed = true; } - list_free(args); + free_flat_list(args); _continue: if (line && line[strlen(line) - 1] == '{') { |