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-3463121 ] CURLOPTION_RESOLVE memory leak

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 23 Dec 2011 05:46:50 -0800

Bugs item #3463121, was opened at 2011-12-20 17:41
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3463121&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: tw84452852 (tw84452852)
Assigned to: Daniel Stenberg (bagder)
Summary: CURLOPTION_RESOLVE memory leak

Initial Comment:
recently,I use CURLOPTION_RESOLVE to add dns cache,but i found that the dns cache i add to doesn't be freed, so have memory leak.After looking at the source code, i found the reason that the dns cache's inuse isn't 0,So i try to change to init it to 0 when cache be added to the global hash table,and it work well.

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

Comment By: Daniel Stenberg (bagder)
Date: 2011-12-23 05:46

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

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

Comment By: Daniel Stenberg (bagder)
Date: 2011-12-21 00:27

Message:
Confirmed. I've now written a test case that repeats a leak. I'm working on
fix. Thanks for the report!

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3463121&group_id=976
Received on 2011-12-23

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET