commit | b9e1645e0b50b79412d5b6f4ebd5a49b38fb80e6 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed May 13 10:10:32 2020 -0700 |
committer | Yifan Hong <elsk@google.com> | Wed May 13 10:11:39 2020 -0700 |
tree | 048a819719493963bc2c746a78eb830aae23fbff | |
parent | ba894f81db6f20b9fef104e31eb1f7dc26f68c2d [diff] |
Fix sanitize address after scope Test: pass Fixes: 156199719 Change-Id: Icaf1e6d379199eec4d664494819405acc013a003
diff --git a/health/utils/libhealth2impl/include/health2impl/HalHealthLoop.h b/health/utils/libhealth2impl/include/health2impl/HalHealthLoop.h index d9b5580..362581e 100644 --- a/health/utils/libhealth2impl/include/health2impl/HalHealthLoop.h +++ b/health/utils/libhealth2impl/include/health2impl/HalHealthLoop.h
@@ -55,7 +55,7 @@ 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; };