Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi authored on 2017/05/24 08:29:13... | ... |
@@ -41,6 +41,7 @@ func Detect(config backend.BuildConfig) (remote builder.Source, dockerfile *pars |
41 | 41 |
} |
42 | 42 |
|
43 | 43 |
func newArchiveRemote(rc io.ReadCloser, dockerfilePath string) (builder.Source, *parser.Result, error) { |
44 |
+ defer rc.Close() |
|
44 | 45 |
c, err := MakeTarSumContext(rc) |
45 | 46 |
if err != nil { |
46 | 47 |
return nil, nil, err |