diff --git a/src/Nethermind/Nethermind.Core/Collections/ArrayPoolList.cs b/src/Nethermind/Nethermind.Core/Collections/ArrayPoolList.cs index 4f582fd7623..c43e1ee0b0a 100644 --- a/src/Nethermind/Nethermind.Core/Collections/ArrayPoolList.cs +++ b/src/Nethermind/Nethermind.Core/Collections/ArrayPoolList.cs @@ -145,7 +145,7 @@ public void ReduceCount(int count) else if (RuntimeHelpers.IsReferenceOrContainsReferences()) { // Release any references to the objects in the array that are no longer in use. - Array.Clear(_array, count, oldCount); + Array.Clear(_array, count, oldCount - count); } void ThrowOnlyReduce(int count)