From b0c1a3803ab93c93404fd0c00d809ae678a4f43a Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 10 Oct 2012 17:09:20 +0200 Subject: [PATCH] windows: fix handle leak in uv_fs_utime --- src/win/fs.c | 3 +++ 1 file changed, 3 insertions(+) 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; }