mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp-tls: fix memory leak when using CA certification validation
This commit is contained in:
parent
4e982d4b18
commit
854c5260d4
@ -136,7 +136,7 @@ static void mbedtls_cleanup(esp_tls_t *tls)
|
|||||||
if (!tls) {
|
if (!tls) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
mbedtls_x509_crt_free(&tls->cacert);
|
||||||
mbedtls_entropy_free(&tls->entropy);
|
mbedtls_entropy_free(&tls->entropy);
|
||||||
mbedtls_ssl_config_free(&tls->conf);
|
mbedtls_ssl_config_free(&tls->conf);
|
||||||
mbedtls_ctr_drbg_free(&tls->ctr_drbg);
|
mbedtls_ctr_drbg_free(&tls->ctr_drbg);
|
||||||
|
Loading…
Reference in New Issue
Block a user