From d9f8cc25d3329298f95880efaae08103c023106b Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Thu, 30 Mar 2023 12:21:22 +0700 Subject: [PATCH] close memdb in ./cmd/evm --- cmd/evm/runner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/evm/runner.go b/cmd/evm/runner.go index bacd1982f..d95aeb1be 100644 --- a/cmd/evm/runner.go +++ b/cmd/evm/runner.go @@ -149,6 +149,7 @@ func runCmd(ctx *cli.Context) error { debugLogger = logger.NewStructLogger(logconfig) } db := memdb.New("") + defer db.Close() if ctx.String(GenesisFlag.Name) != "" { gen := readGenesis(ctx.String(GenesisFlag.Name)) core.MustCommitGenesis(gen, db, "")