Skip to content

plumbing/storage: close Reader & Writer of EncodedObject after use #73

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

Merged
merged 1 commit into from
May 24, 2020

Conversation

WKBae
Copy link
Contributor

@WKBae WKBae commented May 23, 2020

Close() method of EncodedObject.Reader() and EncodedObject.Writer() weren't called in some code paths, causing fd leak.
This commit closes all readers and writers used within this repo, along with ioutil.CheckClose().

@mcuadros mcuadros requested a review from jfontan May 24, 2020 03:44
@mcuadros mcuadros requested a review from erizocosmico May 24, 2020 04:04
@mcuadros mcuadros merged commit 8019144 into go-git:master May 24, 2020
@mcuadros mcuadros changed the title Close Reader & Writer of EncodedObject after use plumbing/storage: close Reader & Writer of EncodedObject after use May 24, 2020
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.

4 participants