mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
split_string memory leaks cleanedup
This commit is contained in:
parent
9a7f48f872
commit
c8415d7fef
4 changed files with 11 additions and 7 deletions
|
|
@ -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] == '{') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue