Skip to content

Fix potential file handle leak and minor typo in settings.gradle - #71 - #72

Merged
jbytecode merged 2 commits into
jbytecode:masterfrom
eric-vlaanderen:fix_file_leak
Aug 27, 2026
Merged

Fix potential file handle leak and minor typo in settings.gradle - #71#72
jbytecode merged 2 commits into
jbytecode:masterfrom
eric-vlaanderen:fix_file_leak

Conversation

@eric-vlaanderen

Copy link
Copy Markdown
Contributor

The method addDataFrame in RCodeUtils creates a new CSVFileWriter and writes to a file, this writer should be closed to ensure that the file handle is released by the java process after the file has been written. Additionally, as a subclass of FileWriter, CSVFileWriter can accept a File object which avoids the need to call "file.getAbsolutePath()".

While attempting to test the changes, a minor typo was found and fixed in settings.gradle.

@jbytecode
jbytecode merged commit 86856be into jbytecode:master Aug 27, 2026
2 checks passed
@jbytecode

Copy link
Copy Markdown
Owner

@eric-vlaanderen - Merged, thanks.

@eric-vlaanderen
eric-vlaanderen deleted the fix_file_leak branch August 28, 2026 19:04
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.

2 participants