summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-03-14 20:16:59 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-03-14 20:16:59 +0000
commitd3e55dff53dc2e8ab0ce19abc386e71be9580d4d (patch)
treed879c69e9ea746acfe7eee3fd7ec3978883b47be /hcid
parent3dbf6d5d3b4dfd2e41a28911832a2ba2fd95f7a7 (diff)
Use correct function to free agent request
Diffstat (limited to 'hcid')
-rw-r--r--hcid/agent.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hcid/agent.c b/hcid/agent.c
index 3b81f0d5..373810e1 100644
--- a/hcid/agent.c
+++ b/hcid/agent.c
@@ -411,9 +411,7 @@ done:
dbus_message_unref(message);
dbus_pending_call_cancel(req->call);
- if (req->call)
- dbus_pending_call_unref(req->call);
- g_free(req);
+ agent_request_free(req);
if (agent->addr) {
if (agent->remove_cb)