1
0
Fork 0
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:
Alexander Morozov 2016-07-05 17:45:34 -07:00 committed by GitHub
commit ad44f49470

View file

@ -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 {