mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(ble): fixed tx memory leak issue when controller disable
This commit is contained in:
parent
ba97f7d755
commit
6e11307d16
@ -72,6 +72,7 @@ hci_transport_controller_evt_tx(uint8_t *hci_ev, void *arg)
|
||||
uint32_t len;
|
||||
|
||||
if (esp_bt_controller_get_status() != ESP_BT_CONTROLLER_STATUS_ENABLED) {
|
||||
r_ble_hci_trans_buf_free(hci_ev);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -85,6 +86,7 @@ hci_transport_controller_acl_tx(struct os_mbuf *om, void *arg)
|
||||
{
|
||||
uint16_t len;
|
||||
if (esp_bt_controller_get_status() != ESP_BT_CONTROLLER_STATUS_ENABLED) {
|
||||
os_mbuf_free_chain(om);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user