fix(nimble): free the allocated npl event in eatt

This commit is contained in:
ShenWeilong
2026-10-29 16:39:39 +05:30
committed by Rahul Tank
parent 2c22602224
commit 8008e5c93c
+2
View File
@@ -499,6 +499,7 @@ ble_gatt_eatt_read_svr_uuid(struct ble_npl_event *ev)
uint16_t conn_handle;
conn_handle = (uint16_t)((uintptr_t)(ble_npl_event_get_arg(ev)));
ble_npl_event_deinit(ev);
nimble_platform_mem_free(ev);
ble_gattc_read_by_uuid(conn_handle, 1, 0xffff,
@@ -512,6 +513,7 @@ ble_gatt_eatt_read_cl_uuid(struct ble_npl_event *ev)
uint16_t conn_handle;
conn_handle = (uint16_t)((uintptr_t)(ble_npl_event_get_arg(ev)));
ble_npl_event_deinit(ev);
nimble_platform_mem_free(ev);
ble_gattc_read_by_uuid(conn_handle, 1, 0xffff,