cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

[PATCH] fix memory leak in lib/easy

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 4 Mar 2009 18:56:32 +0100

Hello,

there is a possible (and highly propable) memory leak in lib/easy module.
If curl_easy_init() is called before curl_global_init(), the 'initialized'
global variable is incremented and therefor never becomes zero.

In the consequence when running curl binary, the curl_global_cleanup()
function is not called at all. This causes significant memory leak when using
nss.

The attached patch (against CVS) fixes it.

Kamil

Received on 2009-03-04

These mail archives are generated by hypermail.

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

File upload with ASP.NET