diff --git a/src/win/fs.c b/src/win/fs.c index 4a2d9362..9b920c81 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -1137,9 +1137,12 @@ static void fs__utime(uv_fs_t* req) { if (fs__utime_handle(handle, req->atime, req->mtime) != 0) { SET_REQ_WIN32_ERROR(req, GetLastError()); + CloseHandle(handle); return; } + CloseHandle(handle); + req->result = 0; }