cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Memory Leak in Libcurl ( with OpenSSL )

From: 林聖雄 <brother21913_at_gmail.com>
Date: Wed, 20 Jan 2010 19:45:04 +0800

2010/1/20 Daniel Stenberg <daniel_at_haxx.se>:
> On Tue, 19 Jan 2010, 林聖雄 wrote:
>>
>> Don't think it related in this case. Because I just need to call
>> curl_global_init(CURL_GLOBAL_ALL); and curl_global_cleanup(); and needn't to
>> do any request in the program will cause this memory leak.
>
> Your leak is clearly caused by OpenSSL as when you avoid the OpenSSL init
> and cleanup with changing the curl_global_init() options, the leak vanished.

Yes, I found following function cause the leak:

if(!SSLeay_add_ssl_algorithms())

That sounds I need to report to OpenSSL team.

Tim
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-20