cURL / Mailing Lists / curl-library / Single Mail


[PATCH] fix memory leak in lib/easy

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


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

The attached patch (against CVS) fixes it.


Received on 2009-03-04