Skip to content

Comments

fix(node-bindings): fix temp dir leak in Geth genesis init#3662

Merged
onbjerg merged 1 commit intoalloy-rs:mainfrom
snazzysam933:dirLeak
Feb 9, 2026
Merged

fix(node-bindings): fix temp dir leak in Geth genesis init#3662
onbjerg merged 1 commit intoalloy-rs:mainfrom
snazzysam933:dirLeak

Conversation

@snazzysam933
Copy link
Contributor

tempdir().keep() drops RAII ownership so if anything between creation and the manual remove_dir_all fails (file create, json write, geth init, etc.), the temp dir leaks. Just keep the TempDir handle alive and let it clean up on drop.

@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Feb 8, 2026
@onbjerg onbjerg merged commit 3559ee9 into alloy-rs:main Feb 9, 2026
30 checks passed
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants