summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-sysdeps-win.c
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2007-03-08 13:40:16 +0000
committerRalf Habacker <ralf.habacker@freenet.de>2007-03-08 13:40:16 +0000
commit55919d2d1479c05d5becfe050316c5fc3d392805 (patch)
tree2efb2eed17c8fa84e7c0310d29fac8e3f7f3d348 /dbus/dbus-sysdeps-win.c
parent2eca6a2241f0f49009c85704170159bf46c5dbb8 (diff)
* dbus-win.patch: dbus-connection.c (dbus_connection_get_unix_user,
dbus_connection_get_unix_process_id): Let return them valid user id's, otherwise bus-test fails. How to replace on win32 ?. * dbus/dbus-sysdeps-win.c (fill_win_user_info_homedir): fix memory leak.
Diffstat (limited to 'dbus/dbus-sysdeps-win.c')
-rw-r--r--dbus/dbus-sysdeps-win.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c
index 8fc74ea0..32243d09 100644
--- a/dbus/dbus-sysdeps-win.c
+++ b/dbus/dbus-sysdeps-win.c
@@ -1304,7 +1304,9 @@ fill_win_user_info_homedir (wchar_t *wname,
else
{
char *dc_string = _dbus_win_utf16_to_utf8(dc,error);
- _dbus_warn("NetUserGetInfo() for user '%s' failed with errorcode %d '%s', %s\n",_dbus_win_utf16_to_utf8(wname,error), ret,_dbus_lm_strerror(ret),dc_string);
+ char *user_name = _dbus_win_utf16_to_utf8(wname,error);
+ _dbus_warn("NetUserGetInfo() for user '%s' failed with errorcode %d '%s', %s\n",user_name, ret,_dbus_lm_strerror(ret),dc_string);
+ dbus_free(user_name);
dbus_free(dc_string);
/* Not set, so use something random. */
info->homedir = _dbus_strdup ("\\");