summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ytai Ben-tsvi <ytai@google.com> 2021-05-26 16:41:14 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-05-26 16:41:14 +0000
commitc53f7a2d411b0f03420c675c1cd6ce1692fb3af3 (patch)
tree92e0d12d480754697870dc5610d27ca50c593185
parenta5706d2900dbc7a7a5aea4dfb95901ef5899d900 (diff)
parent808e525d57310e1332cbf53c88c16b6359ebee7a (diff)
Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev
-rw-r--r--core/java/android/os/HidlMemory.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/os/HidlMemory.java b/core/java/android/os/HidlMemory.java
index 26fc6f0ae4ce..2539a6b2a0eb 100644
--- a/core/java/android/os/HidlMemory.java
+++ b/core/java/android/os/HidlMemory.java
@@ -79,6 +79,7 @@ public class HidlMemory implements Closeable {
public void close() throws IOException {
if (mHandle != null) {
mHandle.close();
+ mHandle = null;
}
}