From: Joshua Rogers Date: Tue, 9 Sep 2025 18:41:17 +0000 (+0000) Subject: win32: close pi.hThread as required by Windows API (#2208) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c36815ea71a32536962e499514a85dd4adbccf8a;p=thirdparty%2Fsquid.git win32: close pi.hThread as required by Windows API (#2208) Previously, a leak would occur due to an unclosed pi.hThread. --- 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();