Merge pull request #2666 from cvstebut/master

close handle on destination after copying boot2docker.iso into vm folder
This commit is contained in:
Jean-Laurent de Morlhon 2015-12-23 09:34:41 +01:00
commit 9f6764ccd3
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ func CopyFile(src, dst string) error {
return err
}
defer out.Close()
if _, err = io.Copy(out, in); err != nil {
return err
}