summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}