From 6a81c1fccef9dc9618fca70a1db54453f9f64b39 Mon Sep 17 00:00:00 2001 From: zhanghaipeng Date: Mon, 15 Jan 2024 16:12:07 +0800 Subject: [PATCH] fix(ble/bluedroid): Fix ble memory leak when gattc config off --- components/bt/host/bluedroid/stack/gatt/gatt_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/bt/host/bluedroid/stack/gatt/gatt_main.c b/components/bt/host/bluedroid/stack/gatt/gatt_main.c index 9f437f94c8f..dfce09a67fa 100644 --- a/components/bt/host/bluedroid/stack/gatt/gatt_main.c +++ b/components/bt/host/bluedroid/stack/gatt/gatt_main.c @@ -194,9 +194,7 @@ void gatt_free(void) #endif /* #if (GATTS_INCLUDED == TRUE) */ } list_free(gatt_cb.p_tcb_list); -#if (GATTC_INCLUDED == TRUE) list_free(gatt_cb.p_clcb_list); -#endif //(GATTC_INCLUDED == TRUE) #if (GATTS_INCLUDED == TRUE) for (int i = 0; i < GATT_MAX_SR_PROFILES; i++) {