Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions nimble/host/src/ble_att_clt.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ ble_att_clt_tx_signed_write_cmd(uint16_t conn_handle, uint16_t cid, uint16_t han
{

struct ble_att_signed_write_cmd *cmd;
struct os_mbuf *txom2;
struct os_mbuf *txom2 = NULL;
uint8_t cmac[16];
uint8_t *message = NULL;
uint16_t len;
Expand Down Expand Up @@ -908,7 +908,9 @@ ble_att_clt_tx_signed_write_cmd(uint16_t conn_handle, uint16_t cid, uint16_t han
message = NULL;
}
/* Do not free txom here; the caller ble_gattc_signed_write is responsible for it on error. */
os_mbuf_free_chain(txom2);
if (txom2 != NULL) {
os_mbuf_free_chain(txom2);
}
return rc;
}
#endif
Expand Down