Rob Shearman : kernel32: Fix handle leak in start_console_renderer_helper.
Module: wine Branch: master Commit: 7ed33ae7215b5f70ed36ee1bd9b449234ad6b44c URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ed33ae7215b5f70ed36ee1bd9... Author: Rob Shearman <rob(a)codeweavers.com> Date: Sat Feb 16 15:35:48 2008 +0000 kernel32: Fix handle leak in start_console_renderer_helper. --- dlls/kernel32/console.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c index 1d86f8a..a1e2de6 100644 --- a/dlls/kernel32/console.c +++ b/dlls/kernel32/console.c @@ -1161,6 +1161,9 @@ static BOOL start_console_renderer_helper(const char* appname, STARTUPINFOA* CreateProcessA(NULL, buffer, NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, si, &pi)) { + CloseHandle(pi.hThread); + CloseHandle(pi.hProcess); + if (WaitForSingleObject(hEvent, INFINITE) != WAIT_OBJECT_0) return FALSE; TRACE("Started wineconsole pid=%08x tid=%08x\n",
participants (1)
-
Alexandre Julliard