mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
components/openssl: free peer cert X509 object when SSL_free
This commit is contained in:
parent
e475d0539e
commit
db9becfa74
@ -149,6 +149,9 @@ void ssl_pm_free(SSL *ssl)
|
|||||||
mbedtls_ssl_config_free(&ssl_pm->conf);
|
mbedtls_ssl_config_free(&ssl_pm->conf);
|
||||||
mbedtls_ssl_free(&ssl_pm->ssl);
|
mbedtls_ssl_free(&ssl_pm->ssl);
|
||||||
|
|
||||||
|
ssl_free(ssl->session.peer);
|
||||||
|
ssl->session.peer = NULL;
|
||||||
|
|
||||||
ssl_free(ssl_pm);
|
ssl_free(ssl_pm);
|
||||||
ssl->ssl_pm = NULL;
|
ssl->ssl_pm = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user