From c36815ea71a32536962e499514a85dd4adbccf8a Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Tue, 9 Sep 2025 18:41:17 +0000 Subject: [PATCH] win32: close pi.hThread as required by Windows API (#2208) Previously, a leak would occur due to an unclosed pi.hThread. --- src/ipc_win32.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ipc_win32.cc b/src/ipc_win32.cc index 4047e4ca50..7d64e65fdb 100644 --- a/src/ipc_win32.cc +++ b/src/ipc_win32.cc @@ -573,6 +573,7 @@ ipc_thread_1(void *in_params) nullptr, nullptr, &si, &pi)) { pid = pi.dwProcessId; hProcess = pi.hProcess; + CloseHandle(pi.hThread); } else { pid = -1; x = GetLastError(); -- 2.47.3