curl-library
[PATCH] fix memory leak in lib/easy
From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 4 Mar 2009 18:56:32 +0100
Received on 2009-03-04
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
- text/x-diff attachment: curl-easy-leak.patch