windows: fix handle leak in uv_fs_utime
This commit is contained in:
parent
4900912d44
commit
b0c1a3803a
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user