cURL / Mailing Lists / curl-library / Single Mail


Re: Memory leak in libcurl

From: Dan Fandrich <>
Date: Mon, 22 Dec 2008 17:22:37 -0800

On Mon, Dec 22, 2008 at 04:57:15PM -0800, Huzaifa Al Nahas wrote:
> The idea is perfectly reasonable if the memory was in fact allocated
> before main. However, it appears that leaked memory is being allocated
> when curl_easy_init or curl_global_init are called. This is evident
> because capturing a memory snapshot at the beginning of main and
> comparing it to a snapshot before exit still reveals a memory leak as
> the next program illustrates:

If that doesn't even work you should be able to move the
curl_global_init/cleanup functions outside the memory checking section. If
there's no function call that OpenSSL exposes to clean up its memory,
then I don't see what else can be done.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-12-23