--- ../dbus/dbus/dbus-sysdeps-util.c 2006-05-05 18:59:23.000000000 +0300 +++ dbus/dbus-sysdeps-util.c 2006-09-07 18:14:43.750536224 +0300 @@ -210,7 +210,7 @@ { dbus_set_error (error, _dbus_error_from_errno (errno), "Failed to fdopen fd %d: %s", fd, _dbus_strerror (errno)); - close (fd); + _dbus_close (fd, NULL); return FALSE; } @@ -219,6 +219,7 @@ dbus_set_error (error, _dbus_error_from_errno (errno), "Failed to write to \"%s\": %s", cfilename, _dbus_strerror (errno)); + fclose (f); return FALSE; }