diff options
author | Jintao Zhu <zhujtcsieee@gmail.com> | 2021-03-13 18:20:17 +0800 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2021-03-15 23:32:45 +0000 |
commit | 9f9047c7d7d9dd8fdee0bbf2092b91f8e3ae906b (patch) | |
tree | e1ebe329f76c8ae0b2ff320a42d1388e94052e9b /neuralnetworks/aidl/utils/src/Service.cpp | |
parent | 03fb28b9fc2c54aabcea824ebe0608ccbdfabeb0 (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