diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-03-17 14:53:17 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-03-17 16:41:12 -0400 |
commit | 9f461eefc0052c3fd998371a7001a13393350920 (patch) | |
tree | edb54b69e114ae16f705fe95ed9d32376655f810 /src/providers/dp_auth_util.c | |
parent | fdab624b337ae01b5466df7be71d9fe4ab80b7d8 (diff) | |
download | sssd2-9f461eefc0052c3fd998371a7001a13393350920.tar.gz sssd2-9f461eefc0052c3fd998371a7001a13393350920.tar.xz sssd2-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/dp_auth_util.c b/src/providers/dp_auth_util.c index e78884aa..fb10ced0 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; } |