Merge branch 'fix/https_server_memory_leak' into 'master'

esp_http_server: Fix transport_ctx not getting freed

Closes IDFGH-5027

See merge request espressif/esp-idf!13037
This commit is contained in:
Mahavir Jain 2021-04-07 07:12:42 +00:00
commit 66b66f1fb5

View File

@ -244,7 +244,7 @@ void httpd_sess_free_ctx(void **ctx, httpd_free_ctx_fn_t free_fn)
void httpd_sess_clear_ctx(struct sock_db *session)
{
if ((!session) || (!session->ctx)) {
if ((!session) || ((!session->ctx) && (!session->transport_ctx))) {
return;
}