builder/virtualbox: close the input source ISO

pull/919/head
Mitchell Hashimoto 13 years ago
parent d1b006cd55
commit 0eea40bad9

@ -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)

Loading…
Cancel
Save