diff --git a/lib/tarutil/systar.go b/lib/tarutil/systar.go index d5214108e..67a87d321 100644 --- a/lib/tarutil/systar.go +++ b/lib/tarutil/systar.go @@ -38,6 +38,10 @@ func ExtractTar(body io.Reader, dir string) error { if _, err := io.Copy(f, tr); err != nil { return err } + + if err := f.Close(); err != nil { + return err + } } }