summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-11-16 20:22:28 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-11-16 20:22:28 +0000
commit540775d2ea97de236ff2aa9da43ebd42de3f8f8f (patch)
treeb6d292b2b5acf866fe5525206d4d40b7de304452
parent38802a5555988b14e1927d8da6d8c198760284a0 (diff)
Fixed memory leak if service auto start fails
-rw-r--r--hcid/dbus-manager.c6
1 files changed, 5 insertions, 1 deletions
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)