BLE_MESH init/deinit memory leak (IDFGH-13193)
Answers checklist.
- [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- [X] I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v4.4.7
Espressif SoC revision.
ESP32D0WDQ5 (revision 3)
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
Custom board
Power Supply used.
USB
What is the expected behavior?
After calling esp_ble_mesh_deinit(), the amount of memory released should be equal to the amount of memory taken when calling esp_ble_mesh_init().
What is the actual behavior?
About 200 B of memory is lost when deinitializing ble mesh stack. In my application i need to be able to frequently init and deinit ble mesh stack so this memory loss would add up.
Steps to reproduce.
Checking state with heap_caps_get_free_size(MALLOC_CAP_INTERNAL) before and after calling ble mesh init and deinit.
Debug Logs.
No response
More Information.
No response
Any news on this ? I share the same issue.
@mm66 @linkineo
Sorry this has sat around for an extraordinary long time without further feedback.
I haven't noticed any memory leaks after performing the deinit operation following mesh init on my end. Could you please provide a detailed introduction to your testing method?
Thanks for reporting, would you please help share if any further updates for the issue? Thanks.
Thanks for reporting, feel free to reopen.