In bt_bap_stream_release stream is accessed after free ERROR: AddressSanitizer: heap-use-after-free on address READ of size 8 at 0x60d0000001e0 thread T0 #0 0x556602a14ce0 in bt_bap_stream_release src/shared/bap.c:5423 #1 0x556602981292 in queue_foreach src/shared/queue.c:207 #2 0x556602a0712a in bt_bap_remove_pac src/shared/bap.c:3572 #3 0x5566026ca846 in media_endpoint_destroy profiles/audio/media.c:180 #4 0x5566026cdef9 in unregister_endpoint profiles/audio/media.c:1708 Silviu Florian Barbulescu (1): shared/bap: Fix crash unreg bcast src endpoint src/shared/bap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) base-commit: a16c2ccf9c256285188f4549b7b767cf31b100eb -- 2.39.2