From: Yuxuan Shui yshui@codeweavers.com
--- server/device.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/server/device.c b/server/device.c index 1f93cca437d..ec47b454bae 100644 --- a/server/device.c +++ b/server/device.c @@ -441,6 +441,7 @@ static struct object *device_open_file( struct object *obj, unsigned int access, access = file->obj.ops->map_access( &file->obj, access ); nt_name.str = device->obj.ops->get_full_name( &device->obj, &nt_name.len ); file->fd = open_fd( NULL, device->unix_path, nt_name, O_NONBLOCK, &mode, access, sharing, options ); + free((void *)nt_name.str); if (file->fd) set_fd_user( file->fd, &device_file_fd_ops, &file->obj ); } else file->fd = alloc_pseudo_fd( &device_file_fd_ops, &file->obj, options );