Commit dafc652f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent c16dd085
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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