Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_ble_memory_leak_v5.1' into 'release/v5.1'
Browse files Browse the repository at this point in the history
fix(ble/bluedroid): Fix ble memory leak when gattc config off(backport v5.1)

See merge request espressif/esp-idf!28496
  • Loading branch information
Isl2017 committed Jan 25, 2024
2 parents 4fd3de1 + 6a81c1f commit 7d45bbe
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions components/bt/host/bluedroid/stack/gatt/gatt_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 7d45bbe

Please sign in to comment.