1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-04-26 13:49:14 +08:00

Close flie

This commit is contained in:
Yasuhiro Matsumoto 2021-05-09 23:02:16 +09:00
parent cde96fa826
commit d494b8ed97
No known key found for this signature in database
GPG Key ID: 622DE34DC490584B

View File

@ -122,6 +122,7 @@ func ReadSerializedClassifierStub(filePath string) (*ClassifierDeserializer, err
if err != nil {
return nil, DescribeError("Can't open file", err)
}
defer f.Close()
gzr, err := gzip.NewReader(f)
if err != nil {