From 7d2353f24dad8bba8914b4014117fe73248c211c Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 23 Dec 2014 15:31:03 +0100 Subject: [PATCH] Close the file --- cmd/ethereum/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go index 12e22a4388..d704140d45 100644 --- a/cmd/ethereum/main.go +++ b/cmd/ethereum/main.go @@ -124,6 +124,8 @@ func main() { clilogger.Infoln(err) return } + defer fh.Close() + var chain types.Blocks if err := rlp.Decode(fh, &chain); err != nil { clilogger.Infoln(err)