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

fixed unclosed tmp file handle in filestore.go #6390

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

deem0n
Copy link
Contributor

@deem0n deem0n commented Jan 21, 2025

Static analyzer found unclosed filehandle tmpFD in case of errors. It is not strictly necessary as GC will eventually close tmpFD, but explicit call of Close is always better than magic finalizer.

Based on the SO discussion

Signed-off-by: Dmitry Dorofeev dima@yasp.com

Signed-off-by: Dmitry Dorofeev <dima@yasp.com>
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@derekcollison derekcollison merged commit 7c25ec0 into nats-io:main Jan 21, 2025
2 checks passed
neilalexander added a commit that referenced this pull request Jan 22, 2025
Includes the following:

- #6373
- #6377
- #6379
- #6390
- #6392
- #6387
- #6292

Signed-off-by: Neil Twigg <neil@nats.io>
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.

3 participants