Close recognized file

This commit is contained in:
Kagami Hiiragi
2021-06-30 17:51:11 +03:00
parent c482b0e1ac
commit 0c14797b4d
+1
View File
@@ -158,6 +158,7 @@ func (rec *Recognizer) recognizeFile(type_ int, imgPath string, maxFaces int) (f
if err != nil {
return
}
defer fd.Close()
imgData, err := ioutil.ReadAll(fd)
if err != nil {
return