fix resource leak in os.(*File).Close

Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
This commit is contained in:
Achille Roussel
2023-02-09 15:52:50 -08:00
committed by Ron Evans
parent 17bc0d6663
commit 85da9a0aac
11 changed files with 168 additions and 40 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ func darwinOpenDir(fd syscallFd) (uintptr, string, error) {
return dir, "", nil
}
// Implemented in syscall/syscall_darwin.go.
// Implemented in syscall/syscall_libc_darwin_*.go.
//go:linkname closedir syscall.closedir
func closedir(dir uintptr) (err error)