esp_http_client appears to cause a memory leak in RTOS task

MicroController
Posts: 2718
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: esp_http_client appears to cause a memory leak in RTOS task

Postby MicroController » Mon Aug 24, 2026 10:49 am


User avatar
sthivaios
Posts: 10
Joined: Wed Aug 19, 2026 4:35 pm
Location: Greece
Contact:

Re: esp_http_client appears to cause a memory leak in RTOS task

Postby sthivaios » Mon Aug 24, 2026 3:35 pm


You're so right, damn how did I not find that on GitHub...
Anyway, thanks again. Guess we'll wait for 6.0.3.

User avatar
sthivaios
Posts: 10
Joined: Wed Aug 19, 2026 4:35 pm
Location: Greece
Contact:

Re: esp_http_client appears to cause a memory leak in RTOS task

Postby sthivaios » Mon Aug 24, 2026 8:42 pm

Hey guys, I just wanna give you one last update.

I did try an HTTP endpoint instead of an HTTPS one. It is, in fact, the mbedTLS bug that MicroController linked.

The heap is completely stable now:

Code: Select all

W (24721) RTOS_FETCH_TASK: (Time #2) Hello from the fetch_task. FREE HEAP: 339964
W (51221) RTOS_FETCH_TASK: (Time #3) Hello from the fetch_task. FREE HEAP: 339964
W (75281) RTOS_FETCH_TASK: (Time #4) Hello from the fetch_task. FREE HEAP: 339964
W (103541) RTOS_FETCH_TASK: (Time #5) Hello from the fetch_task. FREE HEAP: 339964
W (129311) RTOS_FETCH_TASK: (Time #6) Hello from the fetch_task. FREE HEAP: 339964
W (156821) RTOS_FETCH_TASK: (Time #7) Hello from the fetch_task. FREE HEAP: 339968
W (181321) RTOS_FETCH_TASK: (Time #8) Hello from the fetch_task. FREE HEAP: 339968
W (207791) RTOS_FETCH_TASK: (Time #9) Hello from the fetch_task. FREE HEAP: 339968
W (234651) RTOS_FETCH_TASK: (Time #10) Hello from the fetch_task. FREE HEAP: 339968
W (258581) RTOS_FETCH_TASK: (Time #11) Hello from the fetch_task. FREE HEAP: 339968
W (284021) RTOS_FETCH_TASK: (Time #12) Hello from the fetch_task. FREE HEAP: 339968
W (309701) RTOS_FETCH_TASK: (Time #13) Hello from the fetch_task. FREE HEAP: 339968
W (334951) RTOS_FETCH_TASK: (Time #14) Hello from the fetch_task. FREE HEAP: 339968

Thanks again for the help, very much appreciated! I guess now we just wait for Espressif to release IDF 6.0.3.

Who is online

Users browsing this forum: Applebot and 0 guests