summaryrefslogtreecommitdiff
path: root/neuralnetworks/aidl/utils/src/Service.cpp
diff options
context:
space:
mode:
authorJintao Zhu <zhujtcsieee@gmail.com>2021-03-13 18:20:17 +0800
committerSteven Moreland <smoreland@google.com>2021-03-15 23:32:45 +0000
commit9f9047c7d7d9dd8fdee0bbf2092b91f8e3ae906b (patch)
treee1ebe329f76c8ae0b2ff320a42d1388e94052e9b /neuralnetworks/aidl/utils/src/Service.cpp
parent03fb28b9fc2c54aabcea824ebe0608ccbdfabeb0 (diff)
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
Diffstat (limited to 'neuralnetworks/aidl/utils/src/Service.cpp')
0 files changed, 0 insertions, 0 deletions