esp_event_loop_deinit for deallocating queue and task?

nayana
Posts: 4
Joined: Thu Jan 18, 2018 8:50 am

esp_event_loop_deinit for deallocating queue and task?

Postby nayana » Thu Jan 18, 2018 9:07 am

Hi,

I am working on wifi. In present library the esp_event_loop_init() is only preset but esp_event_loop_deinit() is not there to delete the task and queue that is created in esp_event_loop_init() . Can anyone tell me how to implement the deinit() function. Because of that i am facing memory leak in tast execution(i.e critical leak around 16kb). Please reply me as soon as possible.

Log :
MALLOC_CAP_8BIT critical leak: Before 242052 bytes free, After 229160 bytes free (delta 12892)
/home/nayna/Nayana/esp32/bxc_test/components/tools/components/unity/./unity_platform.c:82:TransportCreate_0_SunnyDayTLS:FAIL: The test leaked too much memory

Test ran in 7496ms

-----------------------
1 Tests 1 Failures 0 Ignored
FAIL

Thanks and Regards
Nayana

sukeshak
Posts: 50
Joined: Sat Aug 19, 2017 10:20 am
Contact:

Re: esp_event_loop_deinit for deallocating queue and task?

Postby sukeshak » Sat Jun 09, 2018 2:54 pm

Maybe some sample code snippet will help others to help you better.

Who is online

Users browsing this forum: No registered users and 41 guests