Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Commit

Permalink
Fix tarsplit gzip writer closing
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Feb 19, 2016
1 parent dca7416 commit 73a6211
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions checksums.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (c *checksums) checksumForGraphIDNoTarsplit(id, parent, newTarDataPath stri
}
defer f.Close()
mfz := gzip.NewWriter(f)
defer mfz.Close()
metaPacker := storage.NewJSONPacker(mfz)

packerCounter := &packSizeCounter{metaPacker, &size}
Expand Down

0 comments on commit 73a6211

Please sign in to comment.