close the file

Signed-off-by: zhukj <zhu.kunjia@zte.com.cn>
Upstream-commit: cf3ef262b161f1c3dd61f5689e2853c2e8ec8b70
Component: engine
This commit is contained in:
zhukj
2016-11-21 19:56:01 +08:00
parent 7b9d298769
commit 17bacb4a03
+1
View File
@@ -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")