summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 94da7baec..b1f383e00 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -100,6 +100,7 @@ DWORD WindowsForkStart(InspIRCd * Instance)
DWORD ExitCode = 14;
GetExitCodeProcess(procinfo.hProcess, &ExitCode);
CloseHandle(procinfo.hThread);
+ CloseHandle(procinfo.hProcess);
return ExitCode;
}