netty5/buffer/src
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
..
main/java/io/netty/buffer Ensure the correct wrapped buffer is released in AbstractPooledDerivedByteBuf.deallocate() 2016-06-06 09:49:42 +02:00
test/java/io/netty/buffer Allow to create Unsafe ByteBuf implementations that not use a Cleaner to clean the native memory. 2016-06-03 21:20:10 +02:00