Commit 0eea40ba authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/virtualbox: close the input source ISO

parent d1b006cd
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment