esp_tls: Fix memory leak when esp-tls server session is deleted

This commit is contained in:
Aditya Patwardhan 2021-01-07 16:36:04 +05:30 committed by bot
parent cddb8c29e6
commit 1a09e16af2
2 changed files with 2 additions and 0 deletions

View File

@ -604,6 +604,7 @@ void esp_mbedtls_server_session_delete(esp_tls_t *tls)
{
if (tls != NULL) {
esp_mbedtls_cleanup(tls);
esp_tls_internal_event_tracker_destroy(tls->error_handle);
free(tls);
}
};

View File

@ -464,6 +464,7 @@ void esp_wolfssl_server_session_delete(esp_tls_t *tls)
{
if (tls != NULL) {
esp_wolfssl_cleanup(tls);
esp_tls_internal_event_tracker_destroy(tls->error_handle);
free(tls);
}
}