From 15ded8af51ec491440da846a45aca723d0919623 Mon Sep 17 00:00:00 2001 From: ak88 Date: Wed, 18 Sep 2024 15:35:41 +0200 Subject: [PATCH] Avoid test runner breaking in `TxPoolTest` (#7460) --- src/Nethermind/Nethermind.TxPool/TxPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }