diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-18 22:14:17 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-18 22:14:17 +0000 |
commit | c95189da41105c020e3e11ec00be26f9739fc9e5 (patch) | |
tree | 6468c978a82756ecde573d5823695393fd86eb96 /hcid | |
parent | 85f475a02165dc506758e0a45e59a9be7f5e8583 (diff) |
Fix accessing free'd memory
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c index c6609d81..1ca2d5b1 100644 --- a/hcid/dbus-security.c +++ b/hcid/dbus-security.c @@ -536,13 +536,13 @@ static void send_cancel_request(struct passkey_agent *agent, struct pending_agen send_reply_and_unref(req->conn, message); + debug("PasskeyAgent.Request(%s, %s) was canceled", req->path, address); + dbus_pending_call_cancel(req->call); dbus_pending_call_unref(req->call); dbus_connection_unref(req->conn); free(req->path); free(req); - - debug("PasskeyAgent.Request(%s, %s) was canceled", req->path, address); } void cancel_passkey_agent_requests(struct slist *agents, const char *path, bdaddr_t *addr) |