Used allocated buffer for dirent.