mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Component/bt: fix memory leak in service change char
This commit is contained in:
parent
85d63871ab
commit
2e139c7885
@ -188,6 +188,8 @@ void gatt_free(void)
|
|||||||
|
|
||||||
#if (GATTS_INCLUDED == TRUE)
|
#if (GATTS_INCLUDED == TRUE)
|
||||||
for (i = 0; i < GATT_MAX_SR_PROFILES; i++) {
|
for (i = 0; i < GATT_MAX_SR_PROFILES; i++) {
|
||||||
|
gatt_remove_an_item_from_list(&gatt_cb.hdl_list_info, &gatt_cb.hdl_list[i]);
|
||||||
|
gatt_free_attr_value_buffer(&gatt_cb.hdl_list[i]);
|
||||||
gatt_free_hdl_buffer(&gatt_cb.hdl_list[i]);
|
gatt_free_hdl_buffer(&gatt_cb.hdl_list[i]);
|
||||||
}
|
}
|
||||||
#endif /* #if (GATTS_INCLUDED == TRUE) */
|
#endif /* #if (GATTS_INCLUDED == TRUE) */
|
||||||
|
Loading…
Reference in New Issue
Block a user