Skip to content

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