From 4c2ec1d196e7c21e3108bb4002c607d3587e51e2 Mon Sep 17 00:00:00 2001 From: h00514358 Date: Tue, 31 May 2022 14:45:28 +0800 Subject: [PATCH] fix: Modify sensor list interfaces Signed-off-by: h00514358 --- service/native/src/display_power_mgr_service.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/service/native/src/display_power_mgr_service.cpp b/service/native/src/display_power_mgr_service.cpp index 2dd15ed..8d95734 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) -- Gitee