Fix #1435 and #1436 by reverting 7f7bf304b0
Different PooledByteBufs can have the reference to the same PooledChunk (and its ByteBuffer), so it's incorrect not to create a duplicate.
This commit is contained in:
parent
3ce9ab2e72
commit
bf5960e9eb
@ -71,7 +71,7 @@ final class PooledUnsafeDirectByteBuf extends PooledByteBuf<ByteBuffer> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ByteBuffer newInternalNioBuffer(ByteBuffer memory) {
|
protected ByteBuffer newInternalNioBuffer(ByteBuffer memory) {
|
||||||
return memory;
|
return memory.duplicate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user