From b7cfa5899684b940a7be1f499e656c7dea2a78fb Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 13 Oct 2008 23:37:04 +0100 Subject: [PATCH] write: Close the thread and process handles returned by CreateProcessW. --- programs/write/write.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/write/write.c b/programs/write/write.c index f60d40c2f09..80123552d45 100644 --- a/programs/write/write.c +++ b/programs/write/write.c @@ -45,6 +45,8 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar if (!CreateProcessW(path, GetCommandLineW(), NULL, NULL, FALSE, 0, NULL, NULL, &stinf, &info)) goto failed; + CloseHandle(info.hProcess); + CloseHandle(info.hThread); return 0; failed: