From dafc652f638f45b1e7a58a52bb8b949940f2b213 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 19 Aug 2003 07:51:09 +0000 Subject: 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. --- lib/ssluse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ssluse.c') 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 -- cgit v1.2.3