Bug: http://curl.haxx.se/bug/view.cgi?id=3463121 was fixed only for easy interface. It still exists when I use CURLOPTION_RESOLVE with easy handles that then added to multi session.
Thanks for your report, do you by any chance have an example code that repeats this leak?
modified multi-post.c too show memory leak
I've added an example. Actually this is 'multi-post.c' example from curl site with added line:
curl_easy_setopt(handles[HTTP_HANDLE], CURLOPT_RESOLVE, dns_cache_list)
Bugfix for http://curl.haxx.se/bug/view.cgi?id=3463121 works only if i use 'easy' interface,
see url.c file:
if(data->dns.hostcachetype == HCACHE_PRIVATE)
In case of 'multi' interface data->dns.hostcachetype is not of type HCACHE_PRIVATE. That's why that problem remians.
Thanks, I can repeat the leak...
[PATCH] fixed memory leak: CURLOPT_RESOLVE with multi interface
I've attached my suggested fix (and a new test case). Would appreciate if you can try it out and see that it fixes things in your end too!
Thanks for the report, this problem is now fixed in the git repository.
To try it out, you either checkout/update your git clone: http://curl.haxx.se/source.html
or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.