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

Unpooled and Wrapped Buffer Leak #4667

Closed
wants to merge 1 commit into from
Closed

Conversation

Scottmitch
Copy link
Member

Motivation:
There are a few buffer leaks related to how Unpooled.wrapped and Base64.encode is used.

Modifications:

  • Fix usages of Bas64.encode to correct leaks
  • Clarify interface of Unpooled.wrapped* to ensure reference count ownership is clearly defined.

Result:
Reference count code is more clearly defined and less leaks are possible.

Motivation:
There are a few buffer leaks related to how Unpooled.wrapped and Base64.encode is used.

Modifications:
- Fix usages of Bas64.encode to correct leaks
- Clarify interface of Unpooled.wrapped* to ensure reference count ownership is clearly defined.

Result:
Reference count code is more clearly defined and less leaks are possible.
@Scottmitch Scottmitch self-assigned this Jan 7, 2016
@Scottmitch Scottmitch added this to the 4.0.34.Final milestone Jan 7, 2016
@Scottmitch
Copy link
Member Author

@normanmaurer - PTAL

@normanmaurer
Copy link
Member

@Scottmitch ship it buddy!

@Scottmitch
Copy link
Member Author

Cherry-picked 4.0 (8c8fa11) 4.1 (e578134)

@Scottmitch Scottmitch closed this Jan 7, 2016
@Scottmitch Scottmitch deleted the leaks branch January 7, 2016 20:05
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

2 participants