Merge "getTransport checks both manifests." am: 1957f7a07f am: d05118a3c0
am: adec8147f1

Change-Id: I210c43e8778e807c91fcbdee446157af4cc40834
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp
index e97797d..91c9717 100644
--- a/base/HidlSupport.cpp
+++ b/base/HidlSupport.cpp
@@ -147,6 +147,7 @@
 }
 
 void hidl_handle::setTo(native_handle_t* handle, bool shouldOwn) {
+    freeHandle();
     mHandle = handle;
     mOwnsHandle = shouldOwn;
 }