summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/agent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hcid/agent.c b/hcid/agent.c
index 1e02ea7c..15343a4a 100644
--- a/hcid/agent.c
+++ b/hcid/agent.c
@@ -200,6 +200,8 @@ static void agent_request_free(struct agent_request *req)
{
if (req->call)
dbus_pending_call_unref(req->call);
+ if (req->agent && req->agent->request)
+ req->agent->request = NULL;
g_free(req);
}