mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(nimble): Handle missing free in application
This commit is contained in:
parent
a463942e14
commit
ceac0c1487
@ -367,7 +367,7 @@ void ble_server_uart_task(void *pvParameters)
|
|||||||
/* Check if client has subscribed to notifications */
|
/* Check if client has subscribed to notifications */
|
||||||
if (conn_handle_subs[i]) {
|
if (conn_handle_subs[i]) {
|
||||||
struct os_mbuf *txom;
|
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,
|
rc = ble_gatts_notify_custom(i, ble_spp_svc_gatt_read_val_handle,
|
||||||
txom);
|
txom);
|
||||||
if (rc == 0) {
|
if (rc == 0) {
|
||||||
@ -377,6 +377,8 @@ void ble_server_uart_task(void *pvParameters)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(ntf);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user