bugfix: Close tempfile after writting
This commit is contained in:
parent
2b28de7403
commit
ce81ba63b3
|
@ -35,6 +35,8 @@ func DownloadURLIntoTempFile(requestURL string) (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
defer tmpfile.Close()
|
||||
|
||||
body, err := ioutil.ReadAll(response.Body)
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
|
Loading…
Reference in New Issue