Enthernet Code
DIIDevHeads IoT Integration Server
•Created by Daniel kalu on 8/12/2024 in #📡-edge-networking
How to Detect and Fix Memory Leaks in ESP32 FreeRTOS Home Automation Project?
hello @Daniel kalu The issue is that the buffer you allocate with
malloc(1024)
remains in memory even after the task is deleted with vTaskDelete(NULL)
. Since you’re not freeing the buffer using free(buffer), this memory isn’t returned to the heap, leading to the Heap Allocation Failed
error after several iterations.5 replies