Do not track null ByteBuffers that are being released.
This commit is contained in:
parent
ec8dabfa5b
commit
95c728c12f
|
@ -59,6 +59,8 @@ public class LeakTrackingByteBufferPool extends ContainerLifeCycle implements By
|
|||
@Override
|
||||
public void release(ByteBuffer buffer)
|
||||
{
|
||||
if (buffer == null)
|
||||
return;
|
||||
if (!leakDetector.released(buffer))
|
||||
LOG.warn("ByteBuffer {}@{} released but not acquired", buffer, System.identityHashCode(buffer));
|
||||
delegate.release(buffer);
|
||||
|
|
Loading…
Reference in New Issue