mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #42041 from yu-song/close-file-handle
Automatic merge from submit-queue Add f.close for the opend file
This commit is contained in:
commit
6edd079024
@ -141,6 +141,7 @@ func (d *CachedDiscoveryClient) getCachedFile(filename string) ([]byte, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
fileInfo, err := file.Stat()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user