From: Gowtham Anandha Babu Date: Mon, 22 Sep 2014 07:12:08 +0000 (+0530) Subject: obexd: Fix the double check for agent X-Git-Tag: android-x86-4.4-r3~2510 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cf5361615e4bf2468fe963f690b2c398071e215f;p=android-x86%2Fexternal-bluetooth-bluez.git obexd: Fix the double check for agent Removes the check for NULL agent. --- diff --git a/obexd/src/manager.c b/obexd/src/manager.c index 326e56f94..97ae278da 100644 --- a/obexd/src/manager.c +++ b/obexd/src/manager.c @@ -521,8 +521,7 @@ void manager_cleanup(void) /* FIXME: Release agent? */ - if (agent) - agent_free(agent); + agent_free(agent); g_dbus_detach_object_manager(connection);