diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-23 09:11:35 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-23 09:11:35 +0000 |
commit | d4b3c37d8dc33d144559a10fdd826b853b6d11a0 (patch) | |
tree | ef3c32b144f1d983da460d6085c89fe90e173854 /serial | |
parent | 8231df5273b8ddca457d08809b6e96ed9df1cf62 (diff) |
Plug another 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 056ecf5f..ee1a7924 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -614,6 +614,7 @@ static int get_record(struct pending_connect *pc, uint32_t handle, if (!dbus_connection_send_with_reply(pc->conn, msg, &pc->pcall, -1)) { error("Can't send D-Bus message."); + dbus_message_unref(msg); return -1; } @@ -691,7 +692,7 @@ static int get_handles(struct pending_connect *pc, const char *uuid, DBUS_TYPE_STRING, &uuid, 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."); dbus_message_unref(msg); return -1; |