mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-26 16:36:17 +00:00
cmd/geth: release storage iterator in snapshot dump (#35222)
## Summary - Release the storage iterator after iterating slots in `geth snapshot dump`, matching the existing account iterator cleanup. ## Test plan - [x] `go build ./cmd/geth/...` - [ ] Manual: run `geth snapshot dump` on a node with storage data and verify output is unchanged
This commit is contained in:
parent
4387f433c9
commit
ab134b2101
1 changed files with 1 additions and 0 deletions
|
|
@ -922,6 +922,7 @@ func dumpState(ctx *cli.Context) error {
|
|||
for stIt.Next() {
|
||||
da.Storage[stIt.Hash()] = common.Bytes2Hex(stIt.Slot())
|
||||
}
|
||||
stIt.Release()
|
||||
}
|
||||
enc.Encode(da)
|
||||
accounts++
|
||||
|
|
|
|||
Loading…
Reference in a new issue