mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-03 13:58:14 +00:00
Fix memory leak
This commit is contained in:
parent
fd39919aa3
commit
fe87027512
|
@ -6304,6 +6304,7 @@ static int ssl_parse_certificate_chain( mbedtls_ssl_context *ssl )
|
||||||
/* Delete all remaining CRTs from the original CRT chain. */
|
/* Delete all remaining CRTs from the original CRT chain. */
|
||||||
mbedtls_x509_crt_free(
|
mbedtls_x509_crt_free(
|
||||||
ssl->session_negotiate->peer_cert->next );
|
ssl->session_negotiate->peer_cert->next );
|
||||||
|
mbedtls_free( ssl->session_negotiate->peer_cert->next );
|
||||||
ssl->session_negotiate->peer_cert->next = NULL;
|
ssl->session_negotiate->peer_cert->next = NULL;
|
||||||
|
|
||||||
i += n;
|
i += n;
|
||||||
|
|
Loading…
Reference in a new issue