diff options
Diffstat (limited to 'bus')
-rw-r--r-- | bus/bus.c | 5 | ||||
-rw-r--r-- | bus/main.c | 2 |
2 files changed, 3 insertions, 4 deletions
@@ -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; } } @@ -351,6 +351,7 @@ main (int argc, char **argv) print_addr_fd = val; } } + _dbus_string_free (&addr_fd); print_pid_fd = -1; if (print_pid) @@ -372,6 +373,7 @@ main (int argc, char **argv) print_pid_fd = val; } } + _dbus_string_free (&pid_fd); if (!bus_selinux_init ()) { |