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 Reference Count Leak #488

Merged
merged 1 commit into from
Apr 16, 2018
Merged

Fix Reference Count Leak #488

merged 1 commit into from
Apr 16, 2018

Conversation

nebhale
Copy link
Member

@nebhale nebhale commented Apr 16, 2018

Previously, there were a couple of frames that converted Strings to ByteBufs automatically as part of construction. Those frames though, retained any ByteBufs passed into them so that they could be released by the creators as necessary. Since the automatic construction was not doing this release on the String-based ByteBufs, there was a minor leak of references. This change updates those locations to release the String-based ByteBufs and accurately account for their retention and release.

Previously, there were a couple of frames that converted Strings to ByteBufs
automatically as part of construction.  Those frames though, retained any
ByteBufs passed into them so that they could be released by the creators as
necessary.  Since the automatic construction was not doing this release on the
String-based ByteBufs, there was a minor leak of references.  This change
updates those locations to release the String-based ByteBufs and accurately
account for their retention and release.
@yschimke yschimke merged commit 492f1a5 into rsocket:1.0.x Apr 16, 2018
@nebhale nebhale deleted the reference-leak branch April 16, 2018 19:42
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.

2 participants