Diff between 1ff2c28807c2388fe5136eefa3212319507c7944 and 6bbd5c1736bc60b97b42618325f92fd7ba2f3e19

Changed Files

File Additions Deletions Status
android/a2dp.c +2 -0 modified

Full Patch

diff --git a/android/a2dp.c b/android/a2dp.c
index 35ffe46..a5ea5a0 100644
--- a/android/a2dp.c
+++ b/android/a2dp.c
@@ -309,6 +309,8 @@ static int select_configuration(struct a2dp_device *dev,
 						sizeof(*codec) + preset->len);
 	caps = g_slist_append(caps, service);
 
+	g_free(codec);
+
 	err = avdtp_set_configuration(dev->session, rsep, endpoint->sep, caps,
 								&stream);
 	g_slist_free_full(caps, g_free);