mirror of https://github.com/perkeep/perkeep.git
fix likely fd leak
This commit is contained in:
parent
6b42b42c1a
commit
f7cc633360
|
@ -25,6 +25,7 @@ func readBlobs(ch chan *blobInfo, blobPrefix, diskRoot, after string, remain *ui
|
|||
ch <- &blobInfo{Error: &err}
|
||||
return
|
||||
}
|
||||
defer dir.Close()
|
||||
names, err := dir.Readdirnames(32768)
|
||||
if err != nil {
|
||||
fmt.Println("Error reading dirnames: ", err)
|
||||
|
|
Loading…
Reference in New Issue