fix(ble): fixed memory leak issue when using uart hci

This commit is contained in:
zwl 2024-09-18 10:31:20 +08:00
parent 0ef9ecb715
commit 4d2c44f511

View File

@ -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);
}