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, "")