Address review: state the table lifetime where it is freed

Every teardown path routes through release_services(), so the
materialized table cannot outlive its link - said at free_service_table_
so the next reviewer need not re-derive it.
This commit is contained in:
J. Nick Koston
2026-08-09 19:59:06 -05:00
parent 1933126ad7
commit 273c80ecd3
@@ -346,6 +346,9 @@ ble_device_base::GattServiceTable BluedroidGattClient::table_view_() const {
this->table_desc_total_};
}
// Lifetime: every teardown path (CLOSE_EVT, the safety timeout, stack-down,
// passive DISCONNECT) routes through release_services(), so a materialized
// table cannot outlive its link.
void BluedroidGattClient::free_service_table_() {
if (this->table_storage_ == nullptr) {
return;