aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm/hash.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/swarm/hash.go')
-rw-r--r--cmd/swarm/hash.go1
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())