Page 1 of 1

esp_event_loop_deinit for deallocating queue and task?

Posted: Thu Jan 18, 2018 9:07 am
by nayana
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

Re: esp_event_loop_deinit for deallocating queue and task?

Posted: Sat Jun 09, 2018 2:54 pm
by sukeshak
Maybe some sample code snippet will help others to help you better.