Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when enabling MotherDuck #631

Merged
merged 1 commit into from
Feb 26, 2025
Merged

Fix crash when enabling MotherDuck #631

merged 1 commit into from
Feb 26, 2025

Conversation

JelteF
Copy link
Collaborator

@JelteF JelteF commented Feb 26, 2025

With #630 I accidentally broke MotherDuck support. I had only tested that it would not crash with an incorrect MotherDuck token, but I had not confirmed that a correct one would continue to work correctly. This fixes that.

The reason that this broke was that we would hold a raw pointer to a unique_ptr that was already out of scope. This fixes that by creating the unique_ptr in the correct scope again.

@JelteF JelteF requested a review from wuputah February 26, 2025 18:18
@JelteF JelteF enabled auto-merge (squash) February 26, 2025 18:19
@JelteF JelteF merged commit dfa9da8 into main Feb 26, 2025
5 checks passed
@JelteF JelteF deleted the fix-crash branch February 26, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants