Fix an issue in the FileInfoUtils_FillFileInfoWithNewestFilesInDir() function where, if an error occurs after the FileInfo structure has been partially populated, the cleanup code incorrectly handles the fileName fields. Specifically, the cleanup code frees the fileName fields but does not properly reset these fields in the input array.
Fix an issue in the
FileInfoUtils_FillFileInfoWithNewestFilesInDir()
function where, if an error occurs after theFileInfo
structure has been partially populated, the cleanup code incorrectly handles thefileName
fields. Specifically, the cleanup code frees the fileName fields but does not properly reset these fields in the input array.