Skip to content

Commit

Permalink
Merge branch 'bugfix/delay_report_memory_leak' into 'master'
Browse files Browse the repository at this point in the history
bugfix: fixed memory leak in AVDT delay report

Closes BTQABR2023-12

See merge request espressif/esp-idf!22870
  • Loading branch information
jack0c committed Mar 23, 2023
2 parents d0ce141 + 439d285 commit defae70
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/bt/host/bluedroid/bta/av/bta_av_aact.c
Expand Up @@ -414,6 +414,11 @@ static void bta_av_proc_stream_evt(UINT8 handle, BD_ADDR bd_addr, UINT8 event, t
tBTA_AV_SCB *p_scb = bta_av_cb.p_scb[index];
int xx;

if (event == AVDT_DELAY_REPORT_CFM_EVT) {
APPL_TRACE_DEBUG("%s: AVDT_DELAY_REPORT_CFM_EVT", __func__);
return;
}

if (p_data) {
if (event == AVDT_SECURITY_IND_EVT) {
sec_len = (p_data->security_ind.len < BTA_AV_SECURITY_MAX_LEN) ?
Expand Down Expand Up @@ -500,9 +505,6 @@ static void bta_av_proc_stream_evt(UINT8 handle, BD_ADDR bd_addr, UINT8 event, t
case AVDT_DISCONNECT_IND_EVT:
p_msg->hdr.offset = p_data->hdr.err_param;
break;
case AVDT_DELAY_REPORT_CFM_EVT:
APPL_TRACE_DEBUG("%s: AVDT_DELAY_REPORT_CFM_EVT", __func__);
return;
default:
break;
}
Expand Down

0 comments on commit defae70

Please sign in to comment.