Skip to content

Spawn master set_decode_level with an owned handle - #911

Merged
jadamcrain merged 1 commit into
mainfrom
fix-master-set-decode-level
Nov 28, 2026
Merged

jadamcrain merged 1 commit into
mainfrom
fix-master-set-decode-level

Conversation

@jadamcrain

Copy link
Copy Markdown
Member

The FFI set_decode_level for a master channel spawned a future that borrowed the channel, so destroying the channel before the task ran read freed memory. Spawn it with an owned clone of the handle, as the other spawning calls do.

@jadamcrain
jadamcrain enabled auto-merge November 28, 2026 06:56
@jadamcrain
jadamcrain added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 6c78386 Nov 28, 2026
30 checks passed
@jadamcrain
jadamcrain deleted the fix-master-set-decode-level branch November 28, 2026 07:10
@jadamcrain jadamcrain mentioned this pull request Nov 28, 2026
jadamcrain added a commit that referenced this pull request Nov 28, 2026
Merges `main` into `2.0` to bring in #911. On `2.0` the handle methods
take `&self`, so the owned handle needs no `mut`.
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.

1 participant