From 2f17fa9b39576dc4f1a11fb14f94f7e615339511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Tue, 18 Jan 2022 22:39:20 +0100 Subject: [PATCH] close find handle in fs_file_time on windows --- src/base/system.cpp | 1 + 1 file changed, 1 insertion(+) 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))