OSDN Git Service

obexd: Fix the double check for agent
authorGowtham Anandha Babu <gowtham.ab@samsung.com>
Mon, 22 Sep 2014 07:12:08 +0000 (12:42 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 22 Sep 2014 16:06:48 +0000 (19:06 +0300)
Removes the check for NULL agent.

obexd/src/manager.c

index 326e56f..97ae278 100644 (file)
@@ -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);