summaryrefslogtreecommitdiffstats
path: root/src/providers/dp_auth_util.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-03-17 14:53:17 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-03-17 16:41:12 -0400
commit9f461eefc0052c3fd998371a7001a13393350920 (patch)
treeedb54b69e114ae16f705fe95ed9d32376655f810 /src/providers/dp_auth_util.c
parentfdab624b337ae01b5466df7be71d9fe4ab80b7d8 (diff)
downloadsssd-9f461eefc0052c3fd998371a7001a13393350920.tar.gz
sssd-9f461eefc0052c3fd998371a7001a13393350920.tar.xz
sssd-9f461eefc0052c3fd998371a7001a13393350920.zip
Fix a series of memory leaks in the SBUS
Diffstat (limited to 'src/providers/dp_auth_util.c')
-rw-r--r--src/providers/dp_auth_util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/dp_auth_util.c b/src/providers/dp_auth_util.c
index e78884aaa..fb10ced0b 100644
--- a/src/providers/dp_auth_util.c
+++ b/src/providers/dp_auth_util.c
@@ -338,6 +338,7 @@ int dp_common_send_id(struct sbus_connection *conn, uint16_t version,
{
DBusMessage *msg;
dbus_bool_t ret;
+ int retval;
/* create the message */
msg = dbus_message_new_method_call(NULL,
@@ -361,6 +362,9 @@ int dp_common_send_id(struct sbus_connection *conn, uint16_t version,
return EIO;
}
- return sbus_conn_send(conn, msg, 30000, id_callback, NULL, NULL);
+ retval = sbus_conn_send(conn, msg, 30000, id_callback, NULL, NULL);
+
+ dbus_message_unref(msg);
+ return retval;
}