cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [ curl-Bugs-1216500 ] libcurl handle leak in Windows (fwd)

From: Gisle Vanem <giva_at_bgnett.no>
Date: Thu, 09 Jun 2005 15:36:36 +0200

"Daniel Stenberg" <daniel-curl_at_haxx.se> wrote:

> Howdy Gisle and the rest!
>
> We just got this bug report filed, and I thought one of you Windows savy guys
> could have a look and comment on this?

Sorry, I've not been following libcurl development for some time.
 
> The only place that CloseHandle is called on td-
>>thread_hnd is in the function 'Curl_wait_for_resolv' in
> the same file. HOWEVER, 'Curl_wait_for_resolv' does
> not get called when I step through the code. Therefore
> thread handles are being leaked.

AFAICS, Curl_wait_for_resolv() should always be called to
clean-up the thread data. But maybe we should add code to
Curl_destroy_thread_data() to close the thread handle too.

--gv
Received on 2005-06-09