audio: unref session when failed to setup
authorArchie Pusaka <apusaka@chromium.org>
Thu, 5 Nov 2020 06:40:33 +0000 (14:40 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
commita9ebba6823daffbc706701a7127b9411c3f2224a
treefe43bf6962442c5b818823792d7c3ecfd6b18dc6
parent411def40ba4101f9d8f0b62bedcd77e5e6c691e8
audio: unref session when failed to setup

There is a possibility to miss unref-ing when source/sink fails at
setup.

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