diff --git a/modules/transport-netty4/src/main/java/org/elasticsearch/transport/NettyAllocator.java b/modules/transport-netty4/src/main/java/org/elasticsearch/transport/NettyAllocator.java index 0ec01ebb28b8f..0b9cee7024a00 100644 --- a/modules/transport-netty4/src/main/java/org/elasticsearch/transport/NettyAllocator.java +++ b/modules/transport-netty4/src/main/java/org/elasticsearch/transport/NettyAllocator.java @@ -44,7 +44,7 @@ public class NettyAllocator { } else { ByteBufAllocator delegate; if (useUnpooled()) { - delegate = new NoDirectBuffers(UnpooledByteBufAllocator.DEFAULT); + delegate = UnpooledByteBufAllocator.DEFAULT; } else { int nHeapArena = PooledByteBufAllocator.defaultNumHeapArena(); int pageSize = PooledByteBufAllocator.defaultPageSize();