Alien Queen
Alien Queen
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?
@Daniel kalu Hey there! It sounds like you’re dealing with a tricky memory leak issue, your suspicion about the memory leak in the createTask function is valid. I noticed you’re allocating memory with malloc but not freeing it before the task deletes itself. This would cause a memory leak because each time the task is created and runs, it allocates 1024 bytes of memory that never get freed.
5 replies