2014-09-22 06:58:44

by Gowtham Anandha Babu

[permalink] [raw]
Subject: [PATCH v2] obexd/src/manager: Fix the double check for agent

diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index 326e56f..97ae278 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);

--
1.9.1