fix severe fd leak in stack

Signed-off-by: allencloud <allen.sun@daocloud.io>
(cherry picked from commit 0af04b6132)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
allencloud 2016-07-06 07:00:39 +08:00 committed by Tibor Vass
parent da2ad48b92
commit e8c136169d

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 {