Skip to content

Fix resource leak in SVMUtils (#3964)#3968

Closed
PDGGK wants to merge 1 commit intoeclipse-sw360:mainfrom
PDGGK:fix/sw360-3964-svmutils-leak
Closed

Fix resource leak in SVMUtils (#3964)#3968
PDGGK wants to merge 1 commit intoeclipse-sw360:mainfrom
PDGGK:fix/sw360-3964-svmutils-leak

Conversation

@PDGGK
Copy link
Copy Markdown

@PDGGK PDGGK commented Mar 21, 2026

Fixes unclosed BufferedReader and missing HttpURLConnection.disconnect() in prepareJSONRequestAndGetResponse(). Wrapped readers in try-with-resources and added finally block for disconnect. Closes #3964

@GMishx GMishx added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels Mar 23, 2026
@PDGGK PDGGK force-pushed the fix/sw360-3964-svmutils-leak branch from b063e08 to 360c932 Compare March 24, 2026 05:41
Signed-off-by: ffccites <99155080+PDGGK@users.noreply.github.com>
@PDGGK PDGGK force-pushed the fix/sw360-3964-svmutils-leak branch from 360c932 to 8e09cd4 Compare March 24, 2026 06:24
@rudra-superrr
Copy link
Copy Markdown
Contributor

LGTM. Please sign the Eclipse Contributor Agreement (ECA) before this PR can be merged.

@rudra-superrr rudra-superrr added has merge conflicts The PR has merge conflicts and removed needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels Apr 6, 2026
@GMishx
Copy link
Copy Markdown
Member

GMishx commented Apr 14, 2026

Closing in favor of #4079

@GMishx GMishx closed this Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has merge conflicts The PR has merge conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource leak: BufferedReader and HttpURLConnection never closed in SVMUtils

3 participants