summaryrefslogtreecommitdiffstats
path: root/hcid/agent.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-03-14 20:15:16 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-03-14 20:15:16 +0000
commit1e2a3cbfd4df57aeae610d9c6cebf459e19027d1 (patch)
tree9a4c7c40deab2f24416f08c57698bde6dcbd0869 /hcid/agent.c
parentc69acf2c268b7204da42166001194b0fe6926d91 (diff)
Use correct function to free agent request
Diffstat (limited to 'hcid/agent.c')
-rw-r--r--hcid/agent.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hcid/agent.c b/hcid/agent.c
index a5f2dd40..3b81f0d5 100644
--- a/hcid/agent.c
+++ b/hcid/agent.c
@@ -516,9 +516,7 @@ done:
agent->request = NULL;
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)