Merge branch 'bugfix/handle_missing_free_v4.4' into 'release/v4.4'

fix(nimble): Handle missing free in application (v4.4)

See merge request espressif/esp-idf!29890
This commit is contained in:
Rahul Tank
2024-03-29 21:02:52 +08:00

View File

@@ -332,7 +332,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_gattc_notify_custom(i, ble_spp_svc_gatt_read_val_handle, rc = ble_gattc_notify_custom(i, ble_spp_svc_gatt_read_val_handle,
txom); txom);
if (rc == 0) { if (rc == 0) {
@@ -342,6 +342,8 @@ void ble_server_uart_task(void *pvParameters)
} }
} }
} }
free(ntf);
} }
break; break;
default: default: