Skip to content

Commit

Permalink
diskv: missing f.Close() in writeStreamWithLock(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
gprggr committed Dec 30, 2014
1 parent 508f567 commit aacbe66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions diskv.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func (d *Diskv) writeStreamWithLock(key string, r io.Reader, sync bool) error {
}

if err := wc.Close(); err != nil {
f.Close() // error deliberately ignored
return fmt.Errorf("compression close: %s", err)
}

Expand Down

0 comments on commit aacbe66

Please sign in to comment.