fix(bt/bluedroid): Fixed work queue delete when create thread failed

This commit is contained in:
chenjianhua
2024-08-23 17:01:39 +08:00
parent ae914df9d2
commit 8d1cc85dd1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -271,10 +271,10 @@ _err:
}
for (int i = 0; i < thread->work_queue_num; i++) {
if (thread->work_queues[i]) {
if (thread->work_queues && thread->work_queues[i]) {
osi_work_queue_delete(thread->work_queues[i]);
thread->work_queues[i] = NULL;
}
thread->work_queues[i] = NULL;
}
if (thread->work_queues) {