summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-09 13:50:38 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-09 14:45:25 -0800
commit081ba296db6e918bbb861d656dd99ba0551c0b8e (patch)
tree88980632d01a3625c4420b4eecd0482fa769ac09 /profiles
parent8d2b847b007b8d0a271edf991be51db8023e2832 (diff)
downloadbluez-081ba296db6e918bbb861d656dd99ba0551c0b8e.tar.gz
media: Fix memory leak
This fixes the following memory leak as a result of not freeing app->proxies: 160 (32 direct, 128 indirect) bytes in 1 blocks are definitely lost in loss record 218 of 261 at 0x484086F: malloc (vg_replace_malloc.c:381) by 0x1CF80E: btd_malloc (util.c:33) by 0x1CF24D: queue_new (queue.c:47) by 0x144DB9: create_app (media.c:2262) by 0x144DB9: register_app (media.c:2322) by 0x1CC148: process_message (object.c:246)
Diffstat (limited to 'profiles')
-rw-r--r--profiles/audio/media.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index 521902ed8..edefedc90 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -1910,6 +1910,7 @@ static void app_free(void *data)
{
struct media_app *app = data;
+ queue_destroy(app->proxies, NULL);
queue_destroy(app->endpoints, media_endpoint_remove);
queue_destroy(app->players, media_player_remove);