esp-tls: fix memory leak when using CA certification validation
This commit is contained in:
parent
4e982d4b18
commit
854c5260d4
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue