diff --git a/buffer/src/main/java/io/netty/buffer/AdvancedLeakAwareByteBuf.java b/buffer/src/main/java/io/netty/buffer/AdvancedLeakAwareByteBuf.java index 1b136e88e4..040f5f2e38 100644 --- a/buffer/src/main/java/io/netty/buffer/AdvancedLeakAwareByteBuf.java +++ b/buffer/src/main/java/io/netty/buffer/AdvancedLeakAwareByteBuf.java @@ -717,7 +717,7 @@ final class AdvancedLeakAwareByteBuf extends WrappedByteBuf { boolean deallocated = super.release(); if (deallocated) { leak.close(); - } else{ + } else { leak.record(); } return deallocated;