mirror of
https://gittea.dev/nova/th.git
synced 2026-01-30 16:50:10 -05:00
small changes
This commit is contained in:
9
dir.c
9
dir.c
@@ -139,18 +139,13 @@ void get_dir_content(char *path, unsigned long *dir_file_count, file *dir_conten
|
||||
}
|
||||
free(full_path);
|
||||
free(file);
|
||||
free(entry[i]);
|
||||
}
|
||||
}
|
||||
|
||||
qsort(dir_content, *dir_file_count, sizeof(file), order_func);
|
||||
|
||||
for (i = 0; i < *dir_file_count; i++) {
|
||||
free(entry[i]);
|
||||
}
|
||||
if (entry != NULL) {
|
||||
free(entry);
|
||||
} else {
|
||||
}
|
||||
free(entry);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user