Skip to content

Clean up process and stream handling in JNRPlatformUtils.command()#12

Open
karlvr wants to merge 1 commit intovioletlib:masterfrom
karlvr:fix/platform-utils-process-leak
Open

Clean up process and stream handling in JNRPlatformUtils.command()#12
karlvr wants to merge 1 commit intovioletlib:masterfrom
karlvr:fix/platform-utils-process-leak

Conversation

@karlvr
Copy link
Copy Markdown

@karlvr karlvr commented Mar 17, 2026

Just a cleanup: close the InputStream and destroy the Process. In practice this method is called once at startup for sw_vers which exits immediately, so it is not actually a resource leak. Also replace StringBuffer with StringBuilder.

Just a cleanup: close the InputStream and destroy the Process.
In practice this method is called once at startup for sw_vers which
exits immediately, so it is not actually a resource leak. Also
replace StringBuffer with StringBuilder.
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