netty5/buffer
Norman Maurer 7137d22994 Ensure the correct wrapped buffer is released in AbstractPooledDerivedByteBuf.deallocate()
Motivation:

We need to first store a reference to the wrapped buffer before recycle the AbstractPooledDerivedByteBuf instance. This is needed as otherwise it is possible that the same AbstractPooledDerivedByteBuf is again obtained and init(...) is called before we actually have a chance to call release(). This leads to call release() on the wrong buffer.

Modifications:

Store a reference to the wrapped buffer before call recycle and call release on the previous stored reference.

Result:

Always release the correct wrapped buffer when deallocate the AbstractPooledDerivedByteBuf.
2016-06-06 09:49:42 +02:00
..
src Ensure the correct wrapped buffer is released in AbstractPooledDerivedByteBuf.deallocate() 2016-06-06 09:49:42 +02:00
pom.xml [maven-release-plugin] prepare for next development iteration 2016-05-25 19:16:44 +02:00