From 8008e5c93cf8e3df06ddc541c8bfe910a2715430 Mon Sep 17 00:00:00 2001 From: ShenWeilong Date: Mon, 19 Oct 2026 20:39:39 +0800 Subject: [PATCH] fix(nimble): free the allocated npl event in eatt --- nimble/host/src/ble_eatt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nimble/host/src/ble_eatt.c b/nimble/host/src/ble_eatt.c index 8bad0169b..136d0e824 100644 --- a/nimble/host/src/ble_eatt.c +++ b/nimble/host/src/ble_eatt.c @@ -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,