Memory leak if libzt events aren't consumed by user app If arg is not enqueued by Events, then treat as if ownership has NOT been transferred and caller of Events->enqueue is responsible for freeing
This commit is contained in:
@@ -312,6 +312,10 @@ static void zts_main_lwip_driver_loop(void* arg)
|
||||
zts_util_delay(LWIP_DRIVER_LOOP_INTERVAL);
|
||||
}
|
||||
_has_exited = true;
|
||||
|
||||
//
|
||||
// no need to check if event was enqueued since NULL is being passed
|
||||
//
|
||||
zts_events->enqueue(ZTS_EVENT_STACK_DOWN, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user