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
This commit is contained in:
Norman Maurer 2016-01-12 15:14:00 +01:00
parent da01b1daec
commit f41aa306e9

View File

@ -635,7 +635,6 @@ final class AdvancedLeakAwareByteBuf extends WrappedByteBuf {
@Override
public int forEachByteDesc(ByteProcessor processor) {
recordLeakNonRefCountingOperation();
recordLeakNonRefCountingOperation();
return super.forEachByteDesc(processor);
}