Skip to content

Prevent resource leaks#9

Open
theobisproject wants to merge 1 commit intoisstac:masterfrom
theobisproject:preventResourceLeak
Open

Prevent resource leaks#9
theobisproject wants to merge 1 commit intoisstac:masterfrom
theobisproject:preventResourceLeak

Conversation

@theobisproject
Copy link
Copy Markdown

  • The output stream would not have been closed when an exception happened while writing the bytes
  • The stream from Files.walk needs to be explicitly closed otherwise the handle remains open

- The output stream would not have been closed when an exception happened while writing the bytes
- The stream from Files.walk needs to be explicitly closed otherwise the handle remains open
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