Fix memory leak
This commit is contained in:
parent
e2734e2be4
commit
c1e18bdf06
1 changed files with 1 additions and 0 deletions
|
@ -5619,6 +5619,7 @@ static int ssl_parse_certificate_chain( mbedtls_ssl_context *ssl )
|
|||
/* Delete all remaining CRTs from the original CRT chain. */
|
||||
mbedtls_x509_crt_free(
|
||||
ssl->session_negotiate->peer_cert->next );
|
||||
mbedtls_free( ssl->session_negotiate->peer_cert->next );
|
||||
ssl->session_negotiate->peer_cert->next = NULL;
|
||||
|
||||
i += n;
|
||||
|
|
Loading…
Reference in a new issue