Fixing directoryFiles(). Fixing memory leak