Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit a5a8fc9

Browse files
authored
Merge pull request #37 from cftorres/OpenFilesErrorFix
Removing deferral of file closing during layer untarring
2 parents c8053b7 + 1ebb1fa commit a5a8fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/tar_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ func unpackTar(tr *tar.Reader, path string) error {
5656
if err != nil {
5757
return err
5858
}
59-
defer currFile.Close()
6059
_, err = io.Copy(currFile, tr)
6160
if err != nil {
6261
return err
6362
}
63+
currFile.Close()
6464
}
6565

6666
}

0 commit comments

Comments
 (0)