avdtp: fix possible minor problems
authorlishengyu <lishengyu@uniontech.com>
Wed, 29 Jun 2022 12:46:56 +0000 (20:46 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit3776294b8b62b701f46ab84750e065042c0c0b12
tree193719be10b043678ef5eb8582f13e7abbb4bd36
parent301ab49f69739e6aee6f386ed5cf7b7082dec654
avdtp: fix possible minor problems

It should always be considered that if send_request fails, sep
should be removed from the list and the requested memory freed;

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/avdtp.c