mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
Merge branch 'bugfix/handle_missing_free_v5.0' into 'release/v5.0'
fix(nimble): Handle missing free in application (v5.0) See merge request espressif/esp-idf!29889
This commit is contained in:
commit
46976bdcb7
@ -367,7 +367,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_gatts_notify_custom(i, ble_spp_svc_gatt_read_val_handle,
|
||||
txom);
|
||||
if (rc == 0) {
|
||||
@ -377,6 +377,8 @@ void ble_server_uart_task(void *pvParameters)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
free(ntf);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user