Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42eecbb5 authored by Zhihai Xu's avatar Zhihai Xu
Browse files

need free the buffer to avoid memory leakage when send Avrcp packet

Change-Id: I08b66a2dc779fef1e79d74209058223dcc5e4396
parent 5d8b4eb9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -544,6 +544,8 @@ void BTA_AvMetaRsp(UINT8 rc_handle, UINT8 label, tBTA_AV_CODE rsp_code,
        p_buf->label = label;

        bta_sys_sendmsg(p_buf);
    } else if (p_pkt) {
        GKI_freebuf(p_pkt);
    }
}