X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/d68efe28cf574626264353aed2161f75e1d3ae46..ba8da5e19d29debfc06085d6cad50aee72b7c78b:/windows/window.c diff --git a/windows/window.c b/windows/window.c index 85b4699d..5eb1d047 100644 --- a/windows/window.c +++ b/windows/window.c @@ -2156,6 +2156,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, si.lpReserved2 = NULL; CreateProcess(b, cl, NULL, NULL, inherit_handles, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi); + CloseHandle(pi.hProcess); + CloseHandle(pi.hThread); if (filemap) CloseHandle(filemap);