[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:
Quantum authored and Geoffrey McRae committed 2021-01-15 09:49:42 +11:00
1 parent 25d6d88adb
commit 65009dcedc
1 file changed
+2
+2
View File
@@ -353,6 +353,8 @@ void Launch(void)
goto fail_exe;
}
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
service.processId = pi.dwProcessId;
service.running = true;