aboutsummaryrefslogtreecommitdiff
path: root/lib/ssluse.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-19 07:51:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-19 07:51:09 +0000
commitdafc652f638f45b1e7a58a52bb8b949940f2b213 (patch)
tree4ca72245b28d72c8a6be1f6be17189725b412284 /lib/ssluse.c
parentc16dd085f1e86b287394ab55372c56ee6080b1e7 (diff)
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.
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r--lib/ssluse.c2
1 files changed, 2 insertions, 0 deletions
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