commit | 1408614fd2cb258c264e2e4ef9b20e6e9b6ac137 | [log] [tgz] |
---|---|---|
author | Lyle Zhu <lyle.zhu@nxp.com> | Thu Mar 06 21:46:47 2025 +0800 |
committer | Benjamin Cabé <kartben@gmail.com> | Mon Mar 10 15:02:48 2025 +0100 |
tree | 3bb52dfa3b399c32ff932546c1762b65c5f650cf | |
parent | 80649dadd31272d0e81964dc42235e51a5836dd6 [diff] |
Bluetooth: SSP: `bt_conn_unref` is missing if pairing is not accepted The `conn` is found by using function `bt_conn_lookup_addr_br()`, it should be released by calling `bt_conn_unref()`. But `bt_conn_unref()` is missing in the case that the pairing is not accepted. Release the `conn` by calling `bt_conn_unref()` before exiting the function `bt_hci_io_capa_req`. Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>