commit | 808e525d57310e1332cbf53c88c16b6359ebee7a | [log] [tgz] |
---|---|---|
author | Ytai Ben-Tsvi <ytai@google.com> | Tue May 25 08:20:59 2021 -0700 |
committer | Ytai Ben-Tsvi <ytai@google.com> | Tue May 25 08:20:59 2021 -0700 |
tree | d9d999717d462da79469006c38af514468acda7e | |
parent | cad4e327bf3a2ad3a33d2cbc3f7039473f0adffb [diff] |
Prevent double-closing of native handle in HidlMemory Since the handle wasn't nullified, when the memory is explicitly closed, the finalizer would attempt to close again, which results in an exception. Bug: 189213084 Test: Manual verification of ST use-cases, which uses this. Patch sent to partner for verification. Change-Id: I4ac6bbdd88b3f729a022896adfed00effec48bd8