From ab134b2101b5017d0512ab9b00bfa461632ec902 Mon Sep 17 00:00:00 2001 From: cui Date: Fri, 26 Jun 2026 16:10:56 +0800 Subject: [PATCH] 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 --- cmd/geth/snapshot.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/geth/snapshot.go b/cmd/geth/snapshot.go index 08454f579e..8fedc21c27 100644 --- a/cmd/geth/snapshot.go +++ b/cmd/geth/snapshot.go @@ -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++