Fix memory leak after calling CloseNativeLibrary.

Test: m
Change-Id: I339bd6c024cfc95dd8049e665a30331216fa9fe9
diff --git a/runtime/ti/agent.cc b/runtime/ti/agent.cc
index 0202fbc..bd53958 100644
--- a/runtime/ti/agent.cc
+++ b/runtime/ti/agent.cc
@@ -139,6 +139,7 @@
     // The result of this call and error_msg is ignored because the most
     // relevant error is that native bridge is unsupported.
     android::CloseNativeLibrary(dlopen_handle, needs_native_bridge, &nativeloader_error_msg);
+    android::NativeLoaderFreeErrorMessage(nativeloader_error_msg);
     *error_msg = StringPrintf("Native-bridge agents unsupported: %s", name_.c_str());
     *error = kLoadingError;
     return nullptr;