From cab00ea668e820bfba3e69c5b9fc3b6900a82348 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 5 Jun 2013 16:34:58 +0200 Subject: [PATCH] Added missing CloseHandle, detected by Coverty. --- src/std/c_time.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/std/c_time.c b/src/std/c_time.c index 00e328a1bd..e24013773f 100644 --- a/src/std/c_time.c +++ b/src/std/c_time.c @@ -134,6 +134,7 @@ int c_utimes(const char *uri, const struct timeval *times) { if(!SetFileTime(hFile, NULL, &LastAccessTime, &LastModificationTime)) { //can this happen? errno=ENOENT; + CloseHandle(hFile); return -1; }