Commit 4c6f16b5 authored by FengyunPan's avatar FengyunPan

[Federation]Fix forgeting to close file

parent d2309e2a
...@@ -343,6 +343,7 @@ func newControllerWithTestServer(f func(w http.ResponseWriter, r *http.Request), ...@@ -343,6 +343,7 @@ func newControllerWithTestServer(f func(w http.ResponseWriter, r *http.Request),
if err != nil { if err != nil {
return nil, err return nil, err
} }
defer file.Close()
controller, err := newAdmissionController(file) controller, err := newAdmissionController(file)
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment