| commit | dd3d71610a92ca8253b6cd180a6e637d43f325e6 | [log] [tgz] |
|---|---|---|
| author | Scott Ganyo <scott@ganyo.com> | Thu Dec 08 14:28:03 2016 -0800 |
| committer | Scott Ganyo <scott@ganyo.com> | Thu Dec 08 14:28:03 2016 -0800 |
| tree | 487056a8a4487fe52e9539db19dad69d157ea39e | |
| parent | 772b3abcaa7d401986103027e782bef88b5e6e8e [diff] |
missing Close() on temp file
diff --git a/deployments.go b/deployments.go index 6d1a624..ea7c81a 100644 --- a/deployments.go +++ b/deployments.go
@@ -133,6 +133,12 @@ _, err = io.Copy(tempFile, bundleReader) if err != nil { log.Errorf("Unable to write bundle %s: %v", tempFile, err) + return + } + + err = tempFile.Close() + if err != nil { + log.Errorf("Unable to close file %s: %v", tempFile, err) } return