Skip to content

fix(getDataWriter): close FileOutputStream in getD#292

Open
tejasae-afk wants to merge 1 commit into
chewiebug:developfrom
tejasae-afk:fix/close-fileoutputstream-in-getd
Open

fix(getDataWriter): close FileOutputStream in getD#292
tejasae-afk wants to merge 1 commit into
chewiebug:developfrom
tejasae-afk:fix/close-fileoutputstream-in-getd

Conversation

@tejasae-afk

Copy link
Copy Markdown

getDataWriter is close — The resource opened there can leak if getDataWriter exits on an error path. this patch moves the allocation into try-with-resources so cleanup happens on every exit path. Happy to drop this if it doesn’t fit.

Happy to revise the approach or close this if it doesn’t fit — you know the codebase far better than I do.

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