Rémi Bernon (@rbernon) commented about server/inproc_sync.c:
- int unix_fd;
- if (linux_device_object)
return (struct linux_device *)grab_object( linux_device_object );
- unix_fd = open( "/dev/ntsync", O_CLOEXEC | O_RDONLY );
- if (unix_fd == -1)
- {
file_set_error();
return NULL;
- }
- if (!(device = alloc_object( &linux_device_ops )))
- {
close( unix_fd );
set_error( STATUS_NO_MEMORY );
I think `alloc_object` already sets the error on failure.