Merge branch 'bugfix/hfp_hci_sco' into 'master'

component bt/ Bugfix for HFP hci audio crash

See merge request espressif/esp-idf!6864
This commit is contained in:
Jiang Jiang Jian 2019-12-02 13:55:57 +08:00
commit f696a29664
2 changed files with 1 additions and 1 deletions

View File

@ -321,6 +321,7 @@ static void bta_ag_sco_read_cback(UINT16 sco_inx, BT_HDR *p_data, tBTM_SCO_DATA_
/* Callout function must free the data. */ /* Callout function must free the data. */
bta_ag_sco_co_in_data(p_data, status); bta_ag_sco_co_in_data(p_data, status);
osi_free(p_data);
} }
#endif #endif
/******************************************************************************* /*******************************************************************************

View File

@ -152,7 +152,6 @@ static void btu_hci_msg_process(void *param)
case BT_EVT_TO_BTU_HCI_SCO: case BT_EVT_TO_BTU_HCI_SCO:
#if BTM_SCO_INCLUDED == TRUE #if BTM_SCO_INCLUDED == TRUE
btm_route_sco_data (p_msg); btm_route_sco_data (p_msg);
osi_free(p_msg);
break; break;
#endif #endif