akhud78 / esp32_wifi

Wi-Fi component
0 stars 0 forks source link

leaking memory #5

Open akhud78 opened 5 months ago

akhud78 commented 5 months ago
Here's the test menu, pick your combo:
(1) "station" [wifi]
...
I (74508) test_wifi: free heap size: 2360016
/home/avk/esp/esp32_onvif_client/components/wifi/test/test_wifi.c:9:station:PASS
...
I (100448) test_wifi: free heap size: 2359944
/home/avk/esp/esp32_onvif_client/components/wifi/test/test_wifi.c:9:station:PASS

2359988
2359944
2359880
2359844
2359780
...
2359576
akhud78 commented 5 months ago

Created branch 5_leaking_memory

akhud78 commented 5 months ago

Heap Tracing

Memory leak in a Wi-Fi connection and disconnection process (IDFGH-6820) #8446 I tested your case and let me clarify that, one of the leaked memory comes from vTaskDelay and it took 64Bytes, while the others belongs to Wi-Fi static buffers those only allocated at the first time Wi-Fi initialization. I