esp-idf icon indicating copy to clipboard operation
esp-idf copied to clipboard

BLE_MESH init/deinit memory leak (IDFGH-13193)

Open mm66 opened this issue 1 year ago • 3 comments

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

mm66 avatar Jul 03 '24 09:07 mm66

Any news on this ? I share the same issue.

linkineo avatar Jul 24 '24 13:07 linkineo

@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?

forx157 avatar Oct 15 '24 08:10 forx157

Thanks for reporting, would you please help share if any further updates for the issue? Thanks.

Alvin1Zhang avatar Mar 31 '25 07:03 Alvin1Zhang

Thanks for reporting, feel free to reopen.

Alvin1Zhang avatar Jun 30 '25 08:06 Alvin1Zhang