Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing file closing #131

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Conversation

alexandear
Copy link
Contributor

CreateTemp creates a new temporary file in the directory dir, opens the file for reading and writing, and returns the resulting file. So, it's the caller's responsibility to close the file, which is done in this PR.

Additionally, the PR changes error messages to return the original error.

@alexandear alexandear requested a review from joerdav as a code owner January 27, 2025 12:28
@joerdav joerdav merged commit 47bbd34 into joerdav:main Jan 27, 2025
2 of 3 checks passed
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