Skip to content

Conversation

rueian
Copy link
Contributor

@rueian rueian commented May 13, 2020

Fixes #244

Motivation

The current implementation of zstdProvider.Decompress doesn't close the zstd decoder and will lead to memory leak, mentioned in the issue.

Modifications

Use the decoder.DecodeAll to implement zstdProvider.Decompress and reuse the decoder.
And also upgrade klauspost/compress to v1.10.5.

Copy link
Member

@wolfstudy wolfstudy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool LGTM +1

@wolfstudy wolfstudy merged commit 2dad2b3 into apache:master May 15, 2020
@wolfstudy wolfstudy added this to the 0.1.1 milestone Jun 9, 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.

Memory Leak zstdProvider.Decompress
3 participants