diff --git a/service/native/src/display_power_mgr_service.cpp b/service/native/src/display_power_mgr_service.cpp index 2dd15ed5c5221ee4c152a44852a8bc452d8ae522..8d95734a223c4c65f226caf7a2fa11f16c86990a 100644 --- a/service/native/src/display_power_mgr_service.cpp +++ b/service/native/src/display_power_mgr_service.cpp @@ -379,7 +379,6 @@ void DisplayPowerMgrService::InitSensors() if (!supportLightSensor_) { DISPLAY_HILOGI(FEAT_BRIGHTNESS, "AMBIENT_LIGHT not support"); } - free(sensorInfo); } void DisplayPowerMgrService::AmbientLightCallback(SensorEvent *event)