Skip to content

[ISSUE #10208] Fix resource leak in IOTinyUtils.copyFile - use try-with-resources#10227

Closed
Senrian wants to merge 1 commit intoapache:developfrom
Senrian:fix/iotinyutils-resource-leak
Closed

[ISSUE #10208] Fix resource leak in IOTinyUtils.copyFile - use try-with-resources#10227
Senrian wants to merge 1 commit intoapache:developfrom
Senrian:fix/iotinyutils-resource-leak

Conversation

@Senrian
Copy link
Copy Markdown

@Senrian Senrian commented Mar 29, 2026

Closing this PR since another PR (#10210) by @daguimu already addresses issue #10208 and the issue reporter indicated they will review that PR. Duplicate effort - thanks for the opportunity to contribute to this fix!

@Senrian
Copy link
Copy Markdown
Author

Senrian commented Mar 29, 2026

PR Status Note

This PR fixes a resource leak bug in IOTinyUtils.copyFile() - converting manual try-finally to try-with-resources (4 additions, 12 deletions).

Note: CI does not run automatically on fork PRs due to GitHub security policy. Could a maintainer please trigger CI or approve for merge?

The fix is minimal and functional behavior is unchanged.

@Senrian Senrian closed this Mar 29, 2026
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