Skip to content

refactor: close files, connections, and rpc - #364

Open
tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/close-files-conn-rpc
Open

tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/close-files-conn-rpc

Conversation

@tenthirtyam

Copy link
Copy Markdown
Contributor

Description

Resolved potential resource leaks by adding defer ...Close() calls across file, temp file, device, SSH, and plugin server lifecycles to prevent resource leaks; and closing RPC Serve() goroutines on exit.

Rollback Plan

Revert commit.

Changes to Security Controls

None.

Resolved potential resource leaks by adding `defer ...Close()` calls across file, temp file, device, SSH, and plugin server lifecycles to prevent resource leaks; and closing RPC `Serve()` goroutines on exit.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam
tenthirtyam requested a review from a team as a code owner September 9, 2026 15:40
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