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

Don't leak compressed stream (#630) #636

Merged
merged 6 commits into from
Aug 18, 2021

Conversation

ampanasiuk
Copy link
Contributor

  • Don't leak compressed stream

Transparent compression works by adapting the binary stream with the
GzipFile or BZ2File class. These, however, by design don't close the
adapted stream. Add a matching
CompressionFormatTest.test_closes_compressed_stream test.

* Don't leak compressed stream

Transparent compression works by adapting the binary stream with the
GzipFile or BZ2File class. These, however, by design don't close the
adapted stream. Add a matching
CompressionFormatTest.test_closes_compressed_stream test.
@mpenkov mpenkov merged commit 813d0c8 into piskvorky:develop Aug 18, 2021
@mpenkov
Copy link
Collaborator

mpenkov commented Aug 18, 2021

Thank you for taking care of this! Merged.

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.

Leaked file object with gzip compression
2 participants