windows: fix handle leak in uv_fs_utime

This commit is contained in:
Bert Belder 2012-10-10 17:09:20 +02:00
parent 4900912d44
commit b0c1a3803a

View File

@ -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;
}