diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-23 09:06:05 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-23 09:06:05 +0000 |
commit | 8231df5273b8ddca457d08809b6e96ed9df1cf62 (patch) | |
tree | a77e8e8775c7309a8757fa3eeed49ebc3f7b567d /serial | |
parent | 7c3cfae4b835a040e5e4af68a95f260046d7b710 (diff) | |
download | bluez-8231df5273b8ddca457d08809b6e96ed9df1cf62.tar.gz |
Plug minor memory leak
Diffstat (limited to 'serial')
-rw-r--r-- | serial/manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/serial/manager.c b/serial/manager.c index 965f1653b..056ecf5f0 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -612,7 +612,7 @@ static int get_record(struct pending_connect *pc, uint32_t handle, DBUS_TYPE_UINT32, &handle, DBUS_TYPE_INVALID); - if (dbus_connection_send_with_reply(pc->conn, msg, &pc->pcall, -1) == FALSE) { + if (!dbus_connection_send_with_reply(pc->conn, msg, &pc->pcall, -1)) { error("Can't send D-Bus message."); return -1; } @@ -693,6 +693,7 @@ static int get_handles(struct pending_connect *pc, const char *uuid, if (dbus_connection_send_with_reply(pc->conn, msg, &pc->pcall, -1) == FALSE) { error("Can't send D-Bus message."); + dbus_message_unref(msg); return -1; } |