diff --git a/src/Nethermind/Nethermind.TxPool/TxPool.cs b/src/Nethermind/Nethermind.TxPool/TxPool.cs index 65faf226e95..39ea1d1a85e 100644 --- a/src/Nethermind/Nethermind.TxPool/TxPool.cs +++ b/src/Nethermind/Nethermind.TxPool/TxPool.cs @@ -774,7 +774,7 @@ private void TimerOnElapsed(object? sender, EventArgs e) internal void ResetAddress(Address address) { - ArrayPoolList arrayPoolList = new(1); + using ArrayPoolList arrayPoolList = new(1); arrayPoolList.Add(address); _accountCache.RemoveAccounts(arrayPoolList); }