2013-11-22 14:21:12

by Andrei Emeltchenko

[permalink] [raw]
Subject: [PATCH] android/bluetooth: Fix memory leak

From: Andrei Emeltchenko <[email protected]>

---
android/bluetooth.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/android/bluetooth.c b/android/bluetooth.c
index 11b9d76..aa684bd 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -450,6 +450,7 @@ static void update_records(struct browse_req *req, sdp_list_t *recs)
memcpy(&uuid128, tmp, sizeof(uuid_t));
break;
default:
+ sdp_list_free(svcclass, free);
continue;
}

--
1.8.3.2



2013-11-25 12:52:24

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] android/bluetooth: Fix memory leak

Hi Andrei,

On Fri, Nov 22, 2013, Andrei Emeltchenko wrote:
> From: Andrei Emeltchenko <[email protected]>
>
> ---
> android/bluetooth.c | 1 +
> 1 file changed, 1 insertion(+)

Applied. Thanks.

Johan