bluetooth: host: avoid freeing structure that's part of a linked list

see https://github.com/zephyrproject-rtos/zephyr/pull/39507 for
context.

Signed-off-by: Jacob Siverskog <jacob@teenage.engineering>
1 file changed