curl-library
Memory leak when using OpenSSL
Date: Mon, 18 Aug 2003 13:20:42 -0700
Hi everybody,
I'm using libcurl+OpenSSL in my application to do HTTPS transfers.
Everything is working great, but when my application shuts down, the MSVC++
memory tracker says that OpenSSL is leaking memory. After looking at the
sample OpenSSL applications (e.g. ssltest.c), it seems that
CRYPTO_cleanup_all_ex_data() is needed when shutting down. Adding this call
to Curl_SSL_cleanup() fixes the memory leaks. Is there a reason
CRYPTO_cleanup_all_ex_data() isn't being called?
Here's my config:
- Visual C++ 2003 (Win32)
- libcurl 7.10.7
- OpenSSL 0.9.7b
BTW, Thanks for a fantastic library!
Cheers,
Loren Kirkby
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-18