fix(ble/bluedroid): Fix ble memory leak when gattc config off

This commit is contained in:
zhanghaipeng
2024-01-15 16:12:07 +08:00
committed by BOT
parent 6824abbdb3
commit 6a81c1fcce

View File

@ -194,9 +194,7 @@ void gatt_free(void)
#endif /* #if (GATTS_INCLUDED == TRUE) */ #endif /* #if (GATTS_INCLUDED == TRUE) */
} }
list_free(gatt_cb.p_tcb_list); list_free(gatt_cb.p_tcb_list);
#if (GATTC_INCLUDED == TRUE)
list_free(gatt_cb.p_clcb_list); list_free(gatt_cb.p_clcb_list);
#endif //(GATTC_INCLUDED == TRUE)
#if (GATTS_INCLUDED == TRUE) #if (GATTS_INCLUDED == TRUE)
for (int i = 0; i < GATT_MAX_SR_PROFILES; i++) { for (int i = 0; i < GATT_MAX_SR_PROFILES; i++) {