From 0b18bd79d0bd37774f8c9028d209b6b60309517e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 24 Dec 2008 23:19:40 +0000 Subject: [PATCH] - client, Win: don't leak thread handlers fixes #808 svn path=/trunk/boinc/; revision=16743 --- checkin_notes | 6 ++++++ client/app_start.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/checkin_notes b/checkin_notes index e18f79ced1..dfede0a9f5 100644 --- a/checkin_notes +++ b/checkin_notes @@ -10357,3 +10357,9 @@ Rom 23 Dec 2008 win_build/installerv2/ BOINC.ism BOINCx64.ism + +David 24 Dec 2008 + - client, Win: don't leak thread handlers + fixes #808 + client/ + app_start.cpp diff --git a/client/app_start.cpp b/client/app_start.cpp index 28723001e6..24e7afeab6 100644 --- a/client/app_start.cpp +++ b/client/app_start.cpp @@ -625,6 +625,7 @@ int ACTIVE_TASK::start(bool first_time) { } pid = process_info.dwProcessId; pid_handle = process_info.hProcess; + CloseHandle(process_info.hThread); // thread handle is not used #elif defined(__EMX__) char* argv[100];