Skip to content

Commit

Permalink
Merge branch 'bugfix/handle_missing_free_v4.4' into 'release/v4.4'
Browse files Browse the repository at this point in the history
fix(nimble): Handle missing free in application (v4.4)

See merge request espressif/esp-idf!29890
  • Loading branch information
rahult-github committed Mar 29, 2024
2 parents 1e1030e + c71bd1e commit 3193203
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/bluetooth/nimble/ble_spp/spp_server/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void ble_server_uart_task(void *pvParameters)
/* Check if client has subscribed to notifications */
if (conn_handle_subs[i]) {
struct os_mbuf *txom;
txom = ble_hs_mbuf_from_flat(ntf, sizeof(ntf));
txom = ble_hs_mbuf_from_flat(ntf, event.size);
rc = ble_gattc_notify_custom(i, ble_spp_svc_gatt_read_val_handle,
txom);
if (rc == 0) {
Expand All @@ -342,6 +342,8 @@ void ble_server_uart_task(void *pvParameters)
}
}
}

free(ntf);
}
break;
default:
Expand Down

0 comments on commit 3193203

Please sign in to comment.