summaryrefslogtreecommitdiffstats
path: root/network/manager.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-24 21:51:52 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-24 21:51:52 +0000
commit7defeed3b398d5ca874bc8e3e2fbda099b47c288 (patch)
tree493cd90af9799c9133f1cbe7d40c8056fad7e9a7 /network/manager.c
parentb439d4cb2cd66a2ffee1a7aa86c677a056c61a69 (diff)
network: fixed minor memory leak
Diffstat (limited to 'network/manager.c')
-rw-r--r--network/manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/network/manager.c b/network/manager.c
index 418f474b..0ac6228f 100644
--- a/network/manager.c
+++ b/network/manager.c
@@ -310,6 +310,7 @@ static int get_record(struct pending_reply *pr, uint32_t handle,
if (dbus_connection_send_with_reply(pr->conn, msg, &pending, -1) == FALSE) {
error("Can't send D-Bus message.");
+ dbus_message_unref(msg);
return -1;
}
@@ -386,6 +387,7 @@ static int get_handles(struct pending_reply *pr,
if (dbus_connection_send_with_reply(pr->conn, msg, &pending, -1) == FALSE) {
error("Can't send D-Bus message.");
+ dbus_message_unref(msg);
return -1;
}