`.release()` is technically fine but semantically wrong here. First, release is meant to take ownership from the unique_ptr, meaning at best it's "weird" to not do anything with the pointer afterwards. Second, the runtime struct with the unique_ptr was just default constructed, which means the unique_ptr will be empty anyway.