From: Daniel Stenberg Date: Tue, 19 Aug 2003 07:51:09 +0000 (+0000) Subject: Loren Kirkby pointed out that we need to call CRYPTO_cleanup_all_ex_data() X-Git-Tag: curl-7_10_8~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dafc652f638f45b1e7a58a52bb8b949940f2b213;p=curl Loren Kirkby pointed out that we need to call CRYPTO_cleanup_all_ex_data() when we cleanup the SSL stuff to not leak any memory. I wish this was documented anywhere. --- diff --git a/lib/ssluse.c b/lib/ssluse.c index 02638e534..a05a31428 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -437,6 +437,8 @@ void Curl_SSL_cleanup(void) ENGINE_cleanup(); #endif + CRYPTO_cleanup_all_ex_data(); + init_ssl=0; /* not inited any more */ } #else