This is an automated email from the ASF dual-hosted git repository. kopyscinski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 91507e85c6295344fad1d269da69403b4b23a701 Author: Krzysztof Kopyściński <[email protected]> AuthorDate: Mon Aug 7 12:27:39 2023 +0200 host/ble_att_ctl.c: release eatt chan in ble_att_clt_tx_notify Channel was taken and function returns before release. --- nimble/host/src/ble_att_clt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nimble/host/src/ble_att_clt.c b/nimble/host/src/ble_att_clt.c index 1bbb32f1..3423e25e 100644 --- a/nimble/host/src/ble_att_clt.c +++ b/nimble/host/src/ble_att_clt.c @@ -927,8 +927,9 @@ ble_att_clt_tx_notify(uint16_t conn_handle, uint16_t handle, os_mbuf_concat(txom2, txom); cid = ble_eatt_get_available_chan_cid(conn_handle, BLE_GATT_OP_DUMMY); - return ble_att_tx(conn_handle, cid, txom2); + rc = ble_att_tx(conn_handle, cid, txom2); ble_eatt_release_chan(conn_handle, BLE_GATT_OP_DUMMY); + return rc; err: os_mbuf_free_chain(txom);
