a2dp: Fix double free in load_remote_sep
authorAlain Michaud <alainm@chromium.org>
Mon, 1 Jun 2020 00:56:00 +0000 (00:56 +0000)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commite00ebfee9c10b07461fb29c75168dda71e750028
tree75a483b619013f988cc74deaae80be5c14ccfc9a
parente1c713a680140600ed83f714a8697481f5cf36db
a2dp: Fix double free in load_remote_sep

This patch fixes a double free condition in load_remote_sep. Value is
freed, then the inner loop is broken, but the rest of the outer loop
will attempt to free value again.

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