mirror of https://github.com/moparisthebest/curl
wolfssl: Perform cleanup
This adds a cleanup callback for cyassl. Resolves possible memory leak when using ECC fixed point cache. Closes #3395 Reviewed-by: Daniel Stenberg <daniel@haxx.se> Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
This commit is contained in:
parent
0b9fadf81f
commit
982a897b4b
|
@ -794,6 +794,12 @@ static int Curl_cyassl_init(void)
|
|||
}
|
||||
|
||||
|
||||
static void Curl_cyassl_cleanup(void)
|
||||
{
|
||||
CyaSSL_Cleanup();
|
||||
}
|
||||
|
||||
|
||||
static bool Curl_cyassl_data_pending(const struct connectdata* conn,
|
||||
int connindex)
|
||||
{
|
||||
|
@ -1004,7 +1010,7 @@ const struct Curl_ssl Curl_ssl_cyassl = {
|
|||
sizeof(struct ssl_backend_data),
|
||||
|
||||
Curl_cyassl_init, /* init */
|
||||
Curl_none_cleanup, /* cleanup */
|
||||
Curl_cyassl_cleanup, /* cleanup */
|
||||
Curl_cyassl_version, /* version */
|
||||
Curl_none_check_cxn, /* check_cxn */
|
||||
Curl_cyassl_shutdown, /* shutdown */
|
||||
|
|
Loading…
Reference in New Issue