fix severe fd leak in stack
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
a44e0fedc2
commit
0af04b6132
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue