mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(bt/bluedroid): Fixed invalid access to freed semaphore
This commit is contained in:
parent
fbf2d5d5d9
commit
963f5a40db
@ -275,14 +275,14 @@ void bt_app_send_data_shut_down(void)
|
||||
vTaskDelete(s_bt_app_send_data_task_handler);
|
||||
s_bt_app_send_data_task_handler = NULL;
|
||||
}
|
||||
if (s_send_data_Semaphore) {
|
||||
vSemaphoreDelete(s_send_data_Semaphore);
|
||||
s_send_data_Semaphore = NULL;
|
||||
}
|
||||
if(s_periodic_timer) {
|
||||
ESP_ERROR_CHECK(esp_timer_stop(s_periodic_timer));
|
||||
ESP_ERROR_CHECK(esp_timer_delete(s_periodic_timer));
|
||||
}
|
||||
if (s_send_data_Semaphore) {
|
||||
vSemaphoreDelete(s_send_data_Semaphore);
|
||||
s_send_data_Semaphore = NULL;
|
||||
}
|
||||
if (s_m_rb) {
|
||||
vRingbufferDelete(s_m_rb);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user