Skip to content

Commit 269e833

Browse files
committed
add missing directory-closing call
1 parent b0c8504 commit 269e833

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backends/fs/fs.go

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ func syncDir(name string) error {
149149
}
150150
info, err := dir.Stat()
151151
if err != nil {
152+
_ = dir.Close()
152153
return err
153154
}
154155
if !info.IsDir() {

0 commit comments

Comments
 (0)