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 potential memory leak in Tools#decompressGzip() and Tools#decompressZlib() #1862

Merged
merged 2 commits into from Feb 25, 2016

Conversation

@joschi
Copy link
Contributor

@joschi joschi commented Feb 25, 2016

Properly close streams in Tools#decompressGzip() and Tools#decompressZlib() by using try-with-resources.

Fixes #1857

@joschi joschi added this to the 2.0.0 milestone Feb 25, 2016
@bernd bernd self-assigned this Feb 25, 2016
@StephanErb
Copy link

@StephanErb StephanErb commented Feb 25, 2016

Change looks good. Thanks for the quick reaction!

@bernd
Copy link
Member

@bernd bernd commented Feb 25, 2016

LGTM 👍

bernd added a commit that referenced this pull request Feb 25, 2016
Fix potential memory leak in Tools#decompressGzip() and Tools#decompressZlib()
@bernd bernd merged commit aa24eb0 into master Feb 25, 2016
4 checks passed
4 checks passed
ci-server-integration Jenkins build graylog2-server-integration-pr 687 has succeeded
Details
ci-web-linter Jenkins build graylog-pr-linter-check 178 has succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@bernd bernd deleted the issue-1857 branch Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.