mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
[Federation]Fix forgeting to close file
This commit is contained in:
parent
d2309e2a04
commit
4c6f16b5d7
@ -343,6 +343,7 @@ func newControllerWithTestServer(f func(w http.ResponseWriter, r *http.Request),
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
controller, err := newAdmissionController(file)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user