mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
c_time: Fix resource leak in error case
This fixes Coverity CID 12903
This commit is contained in:
parent
6b041b0846
commit
f9710cc1d5
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@ int c_utimes(const char *uri, const struct timeval *times) {
|
|||
if(!SetFileTime(hFile, NULL, &LastAccessTime, &LastModificationTime)) {
|
||||
//can this happen?
|
||||
errno=ENOENT;
|
||||
CloseHandle(hFile);
|
||||
CloseHandle(hFile);
|
||||
c_free_locale_string(wuri);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue