From 3bfd7b73886c44505ba56894ee6f3c914eb54409 Mon Sep 17 00:00:00 2001 From: Zhihai Xu Date: Fri, 29 Mar 2013 17:33:57 -0700 Subject: [PATCH] need free the buffer to avoid memory leakage when send Avrcp packet Change-Id: I08b66a2dc779fef1e79d74209058223dcc5e4396 --- bta/av/bta_av_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bta/av/bta_av_api.c b/bta/av/bta_av_api.c index a58e4a68f..98718fd91 100644 --- a/bta/av/bta_av_api.c +++ b/bta/av/bta_av_api.c @@ -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); } } -- 2.11.0