builder/virtualbox: close the input source ISO

pull/36/head
Mitchell Hashimoto 13 years ago
parent 39c80262d4
commit 66fac2e82f

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