mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(ble): fixed memory leak issue when using uart hci
(cherry picked from commit 4d2c44f511
)
Co-authored-by: zwl <zhaoweiliang@espressif.com>
This commit is contained in:
parent
dbfc55c111
commit
1ae74c4dd4
@ -154,7 +154,7 @@ hci_driver_uart_deinit(void)
|
||||
|
||||
ESP_ERROR_CHECK(uart_driver_delete(s_hci_driver_uart_env.hci_uart_params->hci_uart_port));
|
||||
|
||||
if (!s_hci_driver_uart_env.tx_sem) {
|
||||
if (s_hci_driver_uart_env.tx_sem) {
|
||||
vSemaphoreDelete(s_hci_driver_uart_env.tx_sem);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user