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: Close block stream after use in blockfile_mgr.go #5085

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

Sayalikukkar
Copy link
Contributor

Type of change

  • Improvement (improvement to code, performance, etc)
  • Bug fix

Description

This change ensures the block stream is properly closed after use in blockfile_mgr.go by adding defer stream.close(), preventing resource leaks.

Additional details

The implementation adds a deferred close to the blockStream to ensure that it gets closed after use.

Related issues

#4992

@Sayalikukkar Sayalikukkar requested a review from a team as a code owner December 20, 2024 16:16
@pfi79 pfi79 merged commit b3f6615 into hyperledger:main Dec 20, 2024
15 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