mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
esp_http_server: Fix transport_ctx not getting freed
Closes https://github.com/espressif/esp-idf/issues/6813
This commit is contained in:
parent
c22eb769e7
commit
3e82fcd566
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user