diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index 0ce94ba..922911c 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
g_dbus_unregister_interface(btd_get_dbus_connection(), path,
MEDIA_TRANSPORT_INTERFACE);
- if (transport->remote_endpoint)
- g_free(transport->remote_endpoint);
-
g_free(path);
}
if (transport->ops && transport->ops->destroy)
transport->ops->destroy(transport->data);
+ g_free(transport->remote_endpoint);
g_free(transport->configuration);
g_free(transport->path);
g_free(transport);