Close files in ExtractTar

This commit is contained in:
Łukasz Magiera 2019-12-08 18:39:24 +01:00
parent d934f03d70
commit 7c2ce93981

View File

@ -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
}
}
}