Skip to content

Commit

Permalink
Merge pull request moby#28644 from zhukj/daemon-config
Browse files Browse the repository at this point in the history
close the file
  • Loading branch information
coolljt0725 authored Nov 21, 2016
2 parents 8976934 + cf3ef26 commit 103f2e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daemon/volumes_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func (daemon *Daemon) verifyVolumesInfo(container *container.Container) error {
if err != nil {
return errors.Wrap(err, "could not open container config")
}
defer f.Close()
var cv volumes
if err := json.NewDecoder(f).Decode(&cv); err != nil {
return errors.Wrap(err, "could not decode container config")
Expand Down

0 comments on commit 103f2e5

Please sign in to comment.