diff options
author | Simo Sorce <idra@samba.org> | 2008-12-09 16:15:18 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-12-09 16:48:45 -0500 |
commit | dd42f1e418addaedbeeff9602520288edf3c7108 (patch) | |
tree | 2f176cc7ba2dc26e93fd844b9c0e40484a2ed0d8 /server/sbus | |
parent | 8f86577722f9e880c82e7a98fcb14ee06acb7170 (diff) | |
download | sssd-dd42f1e418addaedbeeff9602520288edf3c7108.tar.gz sssd-dd42f1e418addaedbeeff9602520288edf3c7108.tar.bz2 sssd-dd42f1e418addaedbeeff9602520288edf3c7108.zip |
Fix dbus related memory leaks
Diffstat (limited to 'server/sbus')
-rw-r--r-- | server/sbus/sssd_dbus_server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sbus/sssd_dbus_server.c b/server/sbus/sssd_dbus_server.c index abc9c863..182e3101 100644 --- a/server/sbus/sssd_dbus_server.c +++ b/server/sbus/sssd_dbus_server.c @@ -261,6 +261,7 @@ int sbus_new_server(struct event_context *ev, struct sbus_method_ctx *ctx, DBusServer *dbus_server; DBusError dbus_error; dbus_bool_t dbret; + char *tmp; /* Set up D-BUS server */ dbus_error_init(&dbus_error); @@ -271,8 +272,9 @@ int sbus_new_server(struct event_context *ev, struct sbus_method_ctx *ctx, return EIO; } - DEBUG(3, ("D-BUS Server listening on %s\n", - dbus_server_get_address(dbus_server))); + tmp = dbus_server_get_address(dbus_server); + DEBUG(3, ("D-BUS Server listening on %s\n", tmp)); + free(tmp); srv_ctx = talloc_zero(ev, struct sbus_srv_ctx); if (!srv_ctx) { |