getTransport respects system/manifest.xml am: 64a41d5877 am: dfdf0a76b8
am: a4547bdb4b

Change-Id: I3660f9ec960d776033c7ee7abd2e349691984b90
diff --git a/base/HidlSupport.cpp b/base/HidlSupport.cpp
index 2abdf1b..ba98b44 100644
--- a/base/HidlSupport.cpp
+++ b/base/HidlSupport.cpp
@@ -134,6 +134,7 @@
 }
 
 void hidl_handle::setTo(native_handle_t* handle, bool shouldOwn) {
+    freeHandle();
     mHandle = handle;
     mOwnsHandle = shouldOwn;
 }