From eb37885909180e7e4c25e5337bec385082174dbd Mon Sep 17 00:00:00 2001 From: Olivier Andrieu Date: Tue, 10 Aug 2004 21:32:25 +0000 Subject: * bus/bus.c (process_config_first_time_only): get rid of an unused DBusError that was causing a memoy leak (bug #989). * dbus/dbus-keyring.c, dbus/dbus-message.c: fix compilation on Solaris/Forte C (bug #974) * bus/main.c (main): plug two minuscule memleaks. --- bus/bus.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bus/bus.c') diff --git a/bus/bus.c b/bus/bus.c index c732280d..c66b7b36 100644 --- a/bus/bus.c +++ b/bus/bus.c @@ -282,17 +282,14 @@ process_config_first_time_only (BusContext *context, { DBusString u; DBusStat stbuf; - DBusError tmp_error; - dbus_error_init (&tmp_error); _dbus_string_init_const (&u, pidfile); - if (_dbus_stat (&u, &stbuf, &tmp_error)) + if (_dbus_stat (&u, &stbuf, NULL)) { dbus_set_error (error, DBUS_ERROR_FAILED, "The pid file \"%s\" exists, if the message bus is not running, remove this file", pidfile); - dbus_error_free (&tmp_error); goto failed; } } -- cgit