fix severe fd leak in stack
Signed-off-by: allencloud <allen.sun@daocloud.io> Upstream-commit: 0af04b613220060ef1fc21ca2f1d551f8f868af8 Component: engine
This commit is contained in:
@@ -35,6 +35,7 @@ func loadBundlefile(stderr io.Writer, namespace string, path string) (*bundlefil
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer reader.Close()
|
||||
|
||||
bundle, err := bundlefile.LoadFile(reader)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user