mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 07:23:39 +00:00
fix resource leak in os.(*File).Close
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
This commit is contained in:
committed by
Ron Evans
parent
17bc0d6663
commit
85da9a0aac
@@ -13,6 +13,9 @@ import (
|
||||
type dirInfo struct {
|
||||
}
|
||||
|
||||
func (*dirInfo) close() {
|
||||
}
|
||||
|
||||
func (f *File) readdir(n int, mode readdirMode) (names []string, dirents []DirEntry, infos []FileInfo, err error) {
|
||||
return nil, nil, nil, &PathError{Op: "readdir unimplemented", Err: syscall.ENOTDIR}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user