Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
Issue-154: unclosed gzip.Reader (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhgough authored and markbates committed May 5, 2019
1 parent 9819ef1 commit e226b8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions box.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func (b Box) decompress(bb []byte) []byte {
if err != nil {
return bb
}
defer reader.Close()

data, err := ioutil.ReadAll(reader)
if err != nil {
return bb
Expand Down

0 comments on commit e226b8c

Please sign in to comment.