Skip to content

blob/fileblob: Close the file in case of BeforeRead or Seek error#3696

Merged
vangent merged 1 commit intogoogle:masterfrom
ganigeorgiev:patch-1
Apr 9, 2026
Merged

blob/fileblob: Close the file in case of BeforeRead or Seek error#3696
vangent merged 1 commit intogoogle:masterfrom
ganigeorgiev:patch-1

Conversation

@ganigeorgiev
Copy link
Copy Markdown
Contributor

This small PR closes the file in case of BeforeRead and Seek error to prevent leaks (I guess the GC finalizer could also clean it up automatically but I think it is better to be explicit).

Note: This was reported in one of the repo I maintain that has the fileblob as slightly modified and vendored dependency.

@vangent vangent merged commit 28d6973 into google:master Apr 9, 2026
7 of 8 checks passed
@vangent
Copy link
Copy Markdown
Contributor

vangent commented Apr 9, 2026

Thanks!

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