ble_mesh: stack: Fix an issue which may not free timer for client msg

This commit is contained in:
lly
2020-08-17 15:50:56 +08:00
committed by maojianxin
parent 2777d636d4
commit 0ff8001297

View File

@@ -359,6 +359,7 @@ int bt_mesh_client_clear_list(void *data)
bt_mesh_list_lock(); bt_mesh_list_lock();
while (!sys_slist_is_empty(&internal->queue)) { while (!sys_slist_is_empty(&internal->queue)) {
node = (void *)sys_slist_get_not_empty(&internal->queue); node = (void *)sys_slist_get_not_empty(&internal->queue);
k_delayed_work_free(&node->timer);
bt_mesh_free(node); bt_mesh_free(node);
} }
bt_mesh_list_unlock(); bt_mesh_list_unlock();