Skip to content

fix: plug fd leak in TomlSet and clean failed install dirs - #287

Merged
josegonzalez merged 1 commit into
mainfrom
fix-tomlset-fd-leak-and-install-cleanup
Apr 30, 2026
Merged

fix: plug fd leak in TomlSet and clean failed install dirs#287
josegonzalez merged 1 commit into
mainfrom
fix-tomlset-fd-leak-and-install-cleanup

Conversation

@josegonzalez

Copy link
Copy Markdown
Member

The encoder error in TomlSet triggered log.Fatal before the explicit f.Close() ran, leaking the file descriptor and any unflushed writes. The bash install command also left a partially extracted directory under $PLUGIN_PATH/available/ when curl | tar xz failed, which then blocked any retry through the "already installed" branch.

The encoder error in `TomlSet` triggered `log.Fatal` before the explicit `f.Close()` ran, leaking the file descriptor and any unflushed writes. The bash `install` command also left a partially extracted directory under `$PLUGIN_PATH/available/` when `curl | tar xz` failed, which then blocked any retry through the "already installed" branch.
@josegonzalez
josegonzalez merged commit 96ad492 into main Apr 30, 2026
4 checks passed
@josegonzalez
josegonzalez deleted the fix-tomlset-fd-leak-and-install-cleanup branch April 30, 2026 04:46
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