media: Fix memory leak
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 9 Nov 2021 21:50:38 +0000 (13:50 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:37 +0000 (19:08 +0530)
commit3a61da8ce9404cda4b1df1c29d38367ef650b805
tree71a28b4c7061fe2c7dcfcf836026a15790bf85c0
parentb306473cb5f0b9fb33f0d7a66c66c62d1fb0ee65
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)

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/media.c