components/openssl: free peer cert X509 object when SSL_free
This commit is contained in:
parent
e475d0539e
commit
db9becfa74
1 changed files with 3 additions and 0 deletions
|
@ -149,6 +149,9 @@ void ssl_pm_free(SSL *ssl)
|
|||
mbedtls_ssl_config_free(&ssl_pm->conf);
|
||||
mbedtls_ssl_free(&ssl_pm->ssl);
|
||||
|
||||
ssl_free(ssl->session.peer);
|
||||
ssl->session.peer = NULL;
|
||||
|
||||
ssl_free(ssl_pm);
|
||||
ssl->ssl_pm = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue