diff options
author | Shintaro Kaneko <kaneshin0120@gmail.com> | 2017-01-30 00:06:15 +0800 |
---|---|---|
committer | Shintaro Kaneko <kaneshin0120@gmail.com> | 2017-01-30 00:10:19 +0800 |
commit | 355a42f36d7e27578ecd645c0fc6e07d793b8154 (patch) | |
tree | 0da8f033e4e8ea94de64e7baf6b78834af149af7 /cmd/swarm/hash.go | |
parent | c46c41eae35e3083090e5806932fc5076e53e37c (diff) | |
download | go-tangerine-355a42f36d7e27578ecd645c0fc6e07d793b8154.tar.gz go-tangerine-355a42f36d7e27578ecd645c0fc6e07d793b8154.tar.zst go-tangerine-355a42f36d7e27578ecd645c0fc6e07d793b8154.zip |
cmd/geth, cmd/swarm: Fix to close file handler appropriately
Diffstat (limited to 'cmd/swarm/hash.go')
-rw-r--r-- | cmd/swarm/hash.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/swarm/hash.go b/cmd/swarm/hash.go index 0a20bea82..bcba77a2a 100644 --- a/cmd/swarm/hash.go +++ b/cmd/swarm/hash.go @@ -36,6 +36,7 @@ func hash(ctx *cli.Context) { fmt.Println("Error opening file " + args[1]) os.Exit(1) } + defer f.Close() stat, _ := f.Stat() chunker := storage.NewTreeChunker(storage.NewChunkerParams()) |