builder/virtualbox: close the input source ISO

This commit is contained in:
Mitchell Hashimoto 2013-06-28 10:30:33 -04:00
parent d1b006cd55
commit 0eea40bad9
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ DownloadWaitLoop:
state["error"] = fmt.Errorf("Error copying ISO: %s", err)
return multistep.ActionHalt
}
defer sourceF.Close()
if _, err := io.Copy(f, sourceF); err != nil {
state["error"] = fmt.Errorf("Error copying ISO: %s", err)