diff --git a/src/base/system.cpp b/src/base/system.cpp index a75ec22c1..d2a358b31 100644 --- a/src/base/system.cpp +++ b/src/base/system.cpp @@ -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))