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

LzmaFrameEncoderTest leak due to LzmaInputStream close behavior #6026

Closed
wants to merge 1 commit into from

Conversation

Scottmitch
Copy link
Member

Motivation:
c1932a8 made an assumption that the LzmaInputStream which wraps a ByteBufInputStream would delegate the close operation to the wrapped stream. This assumption is not true and thus we still had a leak. An issue has been logged with our LZMA dependency jponge/lzma-java#14.

Modifications:

  • Force a close on the wrapped stream

Result:
No more leak.

Motivation:
c1932a8 made an assumption that the LzmaInputStream which wraps a ByteBufInputStream would delegate the close operation to the wrapped stream. This assumption is not true and thus we still had a leak. An issue has been logged with our LZMA dependency jponge/lzma-java#14.

Modifications:
- Force a close on the wrapped stream

Result:
No more leak.
@Scottmitch Scottmitch added this to the 4.1.7.Final milestone Nov 16, 2016
@Scottmitch Scottmitch self-assigned this Nov 16, 2016
@Scottmitch
Copy link
Member Author

@Scottmitch
Copy link
Member Author

4.1 (2c78902)

@Scottmitch Scottmitch closed this Nov 16, 2016
@Scottmitch Scottmitch deleted the encoder_test_leak branch November 16, 2016 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant