close file

This commit is contained in:
wgb
2019-01-01 15:35:25 +08:00
parent 4172eae87e
commit 2c27c0f58a

View File

@ -35,6 +35,7 @@ func EncryptFile(path string) string {
if e != nil {
return ""
}
defer f.Close()
h := md5.New()
_, e = io.Copy(h, f)
if e != nil {