aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-23 22:31:03 +0800
committerobscuren <geffobscura@gmail.com>2014-12-23 22:31:03 +0800
commit7d2353f24dad8bba8914b4014117fe73248c211c (patch)
tree49622ab9b5a8ab5db3d9c8a1e27dfad3a89af071 /cmd
parent34f72ddb3d5a01d6c45c75604bc030c287d51fb2 (diff)
downloadgo-tangerine-7d2353f24dad8bba8914b4014117fe73248c211c.tar
go-tangerine-7d2353f24dad8bba8914b4014117fe73248c211c.tar.gz
go-tangerine-7d2353f24dad8bba8914b4014117fe73248c211c.tar.bz2
go-tangerine-7d2353f24dad8bba8914b4014117fe73248c211c.tar.lz
go-tangerine-7d2353f24dad8bba8914b4014117fe73248c211c.tar.xz
go-tangerine-7d2353f24dad8bba8914b4014117fe73248c211c.tar.zst
go-tangerine-7d2353f24dad8bba8914b4014117fe73248c211c.zip
Close the file
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ethereum/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go
index 12e22a438..d704140d4 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)