From 4d142d61ace24ab14a841b763726572008891708 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Mon, 1 Apr 2002 21:56:56 +0000 Subject: [PATCH] Added closing of process handle at exit. svn path=/trunk/; revision=2802 --- reactos/lib/msvcrt/process/_cwait.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/lib/msvcrt/process/_cwait.c b/reactos/lib/msvcrt/process/_cwait.c index d1a71cedea6..d4df111c817 100644 --- a/reactos/lib/msvcrt/process/_cwait.c +++ b/reactos/lib/msvcrt/process/_cwait.c @@ -27,5 +27,6 @@ int _cwait(int* pnStatus, int hProc, int nAction) return -1; if (pnStatus != NULL) *pnStatus = (int)ExitCode; + CloseHandle((HANDLE)hProc); return hProc; }