cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3575448 ] CURLOPTION_RESOLVE memory leak

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 18 Nov 2012 07:35:41 -0800

Bugs item #3575448, was opened at 2012-10-08 03:56
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3575448&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: bad behaviour
Status: Open
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: alex gruz (gruzovator)
Assigned to: Daniel Stenberg (bagder)
Summary: CURLOPTION_RESOLVE memory leak

Initial Comment:
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.
 

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2012-11-18 07:35

Message:
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!

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2012-10-09 13:39

Message:
Thanks, I can repeat the leak...

----------------------------------------------------------------------

Comment By: alex gruz (gruzovator)
Date: 2012-10-08 23:42

Message:
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)
    Curl_hostcache_destroy(data);

In case of 'multi' interface data->dns.hostcachetype is not of type
HCACHE_PRIVATE. That's why that problem remians.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2012-10-08 13:36

Message:
Thanks for your report, do you by any chance have an example code that
repeats this leak?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3575448&group_id=976
Received on 2012-11-18

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET