diff options
author | Luiz Augusto von Dentz <luiz.dentz-von@nokia.com> | 2011-01-11 16:42:27 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-01-11 17:19:09 +0200 |
commit | a26b71e72c9c511c511287eeb0fb32e7fb9717f7 (patch) | |
tree | a95e713009a7526b2ff75f23cfa06202c9e67f77 | |
parent | daba0e305b633dc2bb631fb370a7f9d33c733977 (diff) | |
download | bluez-a26b71e72c9c511c511287eeb0fb32e7fb9717f7.tar.gz |
Fix memory leak when calling endpoint to select capabilities
When passing allocated memory to avdtp_service_cap_new it needs to be
freed since avdtp_service_cap_new copies the memory.
-rw-r--r-- | audio/a2dp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c index c5da70820..c1d82bb93 100644 --- a/audio/a2dp.c +++ b/audio/a2dp.c @@ -1833,6 +1833,7 @@ static void select_cb(struct media_endpoint *endpoint, void *ret, int size, sizeof(*cap) + size); setup->caps = g_slist_append(setup->caps, media_codec); + g_free(cap); done: finalize_select(setup); |