Skip to content

Commit

Permalink
fix severe fd leak in stack
Browse files Browse the repository at this point in the history
Signed-off-by: allencloud <allen.sun@daocloud.io>
  • Loading branch information
allencloud committed Jul 5, 2016
1 parent a44e0fe commit 0af04b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/client/stack/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0af04b6

Please sign in to comment.