1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 05:11:06 +02:00

fix resource leak of *os.File

This commit is contained in:
fooofei 2020-10-04 10:38:30 +08:00
parent bc8c5db898
commit 5a0ec9431f

View file

@ -241,6 +241,7 @@ func RandomFileName() (fname string, err error) {
return
}
fname = f.Name()
_ = f.Close()
return
}