Skip to content

Commit

Permalink
Make sure that config files are closed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhuff committed Jun 20, 2014
1 parent d204f76 commit d5bf045
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kubelet/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ func (kl *Kubelet) extractFromFile(name string) (api.ContainerManifest, error) {
if file, err = os.Open(name); err != nil {
return manifest, err
}
defer file.Close()

data, err := ioutil.ReadAll(file)
if err != nil {
Expand Down

0 comments on commit d5bf045

Please sign in to comment.