close find handle in fs_file_time on windows

This commit is contained in:
Robert Müller 2022-01-18 22:39:20 +01:00
parent 054e7528dd
commit 2f17fa9b39

View file

@ -2389,6 +2389,7 @@ int fs_file_time(const char *name, time_t *created, time_t *modified)
*created = filetime_to_unixtime(&finddata.ftCreationTime);
*modified = filetime_to_unixtime(&finddata.ftLastWriteTime);
FindClose(handle);
#elif defined(CONF_FAMILY_UNIX)
struct stat sb;
if(stat(name, &sb))