1
0
mirror of https://gittea.dev/nova/th.git synced 2026-01-30 16:50:10 -05:00

small changes

This commit is contained in:
nova
2026-01-05 22:15:11 +01:00
parent 393864c80f
commit 66f3f3bef6
3 changed files with 14 additions and 25 deletions

9
dir.c
View File

@@ -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);
}