split_string memory leaks cleanedup

This commit is contained in:
taiyu 2015-08-23 19:09:18 -07:00
parent 9a7f48f872
commit c8415d7fef
4 changed files with 11 additions and 7 deletions

View file

@ -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] == '{') {