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 #6386

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

deem0n
Copy link

@deem0n deem0n commented Jan 20, 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 discussion on SO

Signed-off-by: Dmitry Dorofeev [email protected]

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.

Signed-off-by: Dmitry Dorofeev <[email protected]>
@deem0n deem0n requested a review from a team as a code owner January 20, 2025 16:27
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