Skip to content

Commit

Permalink
windows: fix handle leak in uv_fs_utime
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Oct 10, 2012
1 parent 4900912 commit b0c1a38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/win/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b0c1a38

Please sign in to comment.