Fixed memory when getting next entry for readdir(); Free the last_entry if there is one.