Fix sanitize address after scope

Test: pass
Fixes: 156199719
Change-Id: Icaf1e6d379199eec4d664494819405acc013a003
Merged-In: Icaf1e6d379199eec4d664494819405acc013a003
This commit is contained in:
Yifan Hong 2020-05-13 10:10:32 -07:00
parent ad17ebe23b
commit c12c576999

View file

@ -55,7 +55,7 @@ class HalHealthLoop : public HealthLoop {
void set_charger_online(const HealthInfo& health_info);
private:
const std::string& instance_name_;
std::string instance_name_;
sp<IHealth> service_;
bool charger_online_ = false;
};