diff --git a/cmd/pk/mime.go b/cmd/pk/mime.go index b59f29a16..f5ad02e45 100644 --- a/cmd/pk/mime.go +++ b/cmd/pk/mime.go @@ -29,6 +29,7 @@ func showMIME(file string) { if err != nil { log.Fatal(err) } + defer f.Close() mime, _ := magic.MIMETypeFromReader(f) fmt.Println(mime) }