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

Commit 435f16d6 authored by Zhihai Xu's avatar Zhihai Xu Committed by Android Git Automerger
Browse files

am 42eecbb5: need free the buffer to avoid memory leakage when send Avrcp packet

* commit '42eecbb5':
  need free the buffer to avoid memory leakage when send Avrcp packet
parents 97dbcd30 42eecbb5
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);
    }
}