mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #24351 from allencloud/add-file-close-in-loadBundlefile
fix severe fd leak in stack
This commit is contained in:
commit
ad44f49470
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer reader.Close()
|
||||||
|
|
||||||
bundle, err := bundlefile.LoadFile(reader)
|
bundle, err := bundlefile.LoadFile(reader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue