Skip to content

Fix crash when enabling MotherDuck#631

Merged
JelteF merged 1 commit intomainfrom
fix-crash
Feb 26, 2025
Merged

Fix crash when enabling MotherDuck#631
JelteF merged 1 commit intomainfrom
fix-crash

Conversation

@JelteF
Copy link
Copy Markdown
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