From 540775d2ea97de236ff2aa9da43ebd42de3f8f8f Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Thu, 16 Nov 2006 20:22:28 +0000 Subject: Fixed memory leak if service auto start fails --- hcid/dbus-manager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hcid') diff --git a/hcid/dbus-manager.c b/hcid/dbus-manager.c index 55c601ae..dd6c0b4c 100644 --- a/hcid/dbus-manager.c +++ b/hcid/dbus-manager.c @@ -233,7 +233,11 @@ static void autostart_reply(DBusPendingCall *pcall, void *udata) dbus_error_init(&err); /* Ignore if the result is an error */ - if (!dbus_set_error_from_message(&err, agent_reply)) { + if (dbus_set_error_from_message(&err, agent_reply)) { + error("Service auto start failed: %s(%s)", + err.message, call->agent->name); + dbus_error_free(&err); + } else { DBusMessage *message; if (!call->agent) -- cgit