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: Mon, 08 Oct 2012 23:42:59 -0700

Bugs item #3575448, was opened at 2012-10-08 03:56
Message generated for change (Comment added) made by gruzovator
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: None
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: 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-10-09

These mail archives are generated by hypermail.

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

File upload with ASP.NET