mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 18:00:46 +00:00
cmd/geth: release account iterator in listEIP7610EligibleAccounts (#35250)
listEIP7610EligibleAccounts opens an account iterator and never releases it.
This commit is contained in:
parent
11524ba075
commit
a0568b1dbf
1 changed files with 1 additions and 0 deletions
|
|
@ -1054,6 +1054,7 @@ func listEIP7610EligibleAccounts(ctx *cli.Context) error {
|
||||||
log.Error("Failed to get account iterator", "err", err)
|
log.Error("Failed to get account iterator", "err", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer iter.Release()
|
||||||
var (
|
var (
|
||||||
start = time.Now()
|
start = time.Now()
|
||||||
accounts []common.Address
|
accounts []common.Address
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue