mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fix a double close in Windows
This commit is contained in:
parent
6bfbc6e3b2
commit
b50332db54
1 changed files with 0 additions and 2 deletions
|
|
@ -2989,14 +2989,12 @@ static int devup(uint64_t device, const char* name, const char* wfile)
|
|||
|
||||
if (!CloseHandle(h)) {
|
||||
DWORD error = GetLastError();
|
||||
CloseHandle(h);
|
||||
VirtualFree(buffer, 0, MEM_RELEASE);
|
||||
windows_errno(error);
|
||||
log_tag("device:%s:%s:error:%lu\n", file, name, error);
|
||||
return -1;
|
||||
}
|
||||
|
||||
CloseHandle(h);
|
||||
VirtualFree(buffer, 0, MEM_RELEASE);
|
||||
|
||||
log_tag("attr:%s:%s:power:up\n", file, name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue