diff --git a/extern/filecoin-ffi b/extern/filecoin-ffi index fe188cfa1..16a8b663e 160000 --- a/extern/filecoin-ffi +++ b/extern/filecoin-ffi @@ -1 +1 @@ -Subproject commit fe188cfa1e082e4c41cadeb17a3a7c9e43ae6f03 +Subproject commit 16a8b663ec61339d3d8736e85eddd3e4a1c190b7 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 + } } }