You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The event.deinit callback is not called on shutdown, and event.init will be called again if you call OTA_Init after the agent has shutdown.
The two examples in os/portable happen to use methods (xQueueCreateStatic and mq_open) where this does not create issues, but in general it may lead to resource leaks, for example if someone happens to compile FreeRTOS without #define configSUPPORT_STATIC_ALLOCATION 1
and then replaces that call with xQueueCreate.
The text was updated successfully, but these errors were encountered:
Hello, Thank you for pointing this out, for non static implementations other than the two provided event.deinit must be called. We are working internally on a pull request to address this.
Hi,
To handle the race condition better, we don't reset the functions pointer when shutdown, including event queue, callback, etc.
So event.deinit is never called but there won't be any leakage because OTA will use same event queue at the next OTA_Init.
I'm going to close this issue. Any feedback is welcome.
The event.deinit callback is not called on shutdown, and event.init will be called again if you call OTA_Init after the agent has shutdown.
The two examples in os/portable happen to use methods (xQueueCreateStatic and mq_open) where this does not create issues, but in general it may lead to resource leaks, for example if someone happens to compile FreeRTOS without
#define configSUPPORT_STATIC_ALLOCATION 1
and then replaces that call with xQueueCreate.
The text was updated successfully, but these errors were encountered: