Indicate to lower layer that the stream will not be used any more. --- profiles/audio/bap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index ee7c8bc49..dcef98148 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -860,6 +860,8 @@ static void setup_free(void *data) if (setup->destroy) setup->destroy(setup); + bt_bap_stream_discard(setup->stream); + free(setup); } -- 2.49.0