mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-10 17:38:10 +00:00
[host] windows: avoid leaking process and thread handles
The handles in PROCESS_INFORMATION must be closed if not used, or they will leak.
This commit is contained in:
@@ -353,6 +353,8 @@ void Launch(void)
|
|||||||
goto fail_exe;
|
goto fail_exe;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CloseHandle(pi.hProcess);
|
||||||
|
CloseHandle(pi.hThread);
|
||||||
service.processId = pi.dwProcessId;
|
service.processId = pi.dwProcessId;
|
||||||
service.running = true;
|
service.running = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user