Skip to content

Commit f41aa30

Browse files
committed
Remove multiple calls to recordLeakNonRefCountingOperation() in AdvancedLeakAwareByteBuf.forEachByteDesc
Motivation: AdvancedLeakAwareByteBuf.forEachByteDesc(...) called recordLeakNonRefCountingOperation() two times which resulted in incorrect leak detection reports. Modifications: Remove duplicated call to recordLeakNonRefCountingOperation() Result: Correct leak detection results
1 parent da01b1d commit f41aa30

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

buffer/src/main/java/io/netty/buffer/AdvancedLeakAwareByteBuf.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ public int forEachByte(int index, int length, ByteProcessor processor) {
635635

636636
@Override
637637
public int forEachByteDesc(ByteProcessor processor) {
638-
recordLeakNonRefCountingOperation();
639638
recordLeakNonRefCountingOperation();
640639
return super.forEachByteDesc(processor);
641640
}

0 commit comments

Comments
 (0)