platform_hardware_interfaces/power/1.0/default
Jintao Zhu 9f9047c7d7 Fix incorrect Power destruction
(1) As the following call chain indicating, mModule is indeed not pointing to heap memory object, trying to delete it is illegal.
      HIDL_FETCH_IPower -> hw_get_module -> hw_get_module_by_class -> load(hardware/libhardware/hardware.c)

(2) Fix by removing 'delete'

Test: monkey test

Signed-off-by: Jintao Zhu <zhujtcsieee@gmail.com>
Signed-off-by: Steven Moreland <smoreland@google.com>
Change-Id: If95bd8823354cd862d105b96101f910dc1ca95a6
2021-03-15 23:32:45 +00:00
..
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces 2021-02-21 20:36:55 -08:00
android.hardware.power@1.0-service.rc Add interface info to .rc files 2019-06-25 20:00:07 +02:00
Power.cpp Fix incorrect Power destruction 2021-03-15 23:32:45 +00:00
Power.h Remove HIDL_GENERATED from things written by hand. 2016-11-29 15:05:31 -08:00
service.cpp power HAL uses "default" service name 2017-01-24 20:06:32 -08:00