curl-library
Re: CURLOPT_RESOVE memory leak with multi-handle is not fixed completely
Date: Mon, 17 Dec 2012 21:29:58 -0800
The attached is the slightly modified example that Alex Cruz used in
bug 1150 report.
The only thing added was removing easy handles from the multi handle
before curl_multi_clean() is called. With this, Curl_hostcache_clean()
is not called.
Thanks,
Bin
On Mon, Dec 17, 2012 at 11:04 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Mon, 17 Dec 2012, Bin Wang wrote:
>
>> I think the memory leak mentioned in
>> http://sourceforge.net/p/curl/bugs/1150/ is still not fixed completely. If
>> all the easy handles are removed from the multi handle, then when multi
>> handle is cleaned up, the DNS cache entries populated from CURLOPT_RESOLVE
>> are not cleared.
>
>
> Then please provide a recipe (that still makes the latest release show a
> leak). I fixed the leak I could repeat and even added a test case that
> verifies it! (1502)
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- text/x-csrc attachment: main.c