Skip to content

fix: Memory leak in finalizer#31

Merged
samuelburnham merged 1 commit intomainfrom
hasher-leak
Mar 6, 2026
Merged

fix: Memory leak in finalizer#31
samuelburnham merged 1 commit intomainfrom
hasher-leak

Conversation

@samuelburnham
Copy link
Member

Without the lean_dec the owned hasher object is dropped, because only out is returned, so the ref count in Lean never reaches 0 and the blake3_hasher_finalizer freeing function is never called.

@samuelburnham samuelburnham enabled auto-merge (squash) March 6, 2026 20:16
Copy link
Member

@arthurpaulino arthurpaulino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵🏼

@samuelburnham samuelburnham merged commit f89c732 into main Mar 6, 2026
7 checks passed
@samuelburnham samuelburnham deleted the hasher-leak branch March 6, 2026 21:04
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