while(i < Files) { free(FileList[i]); i++; } free(FileList);