From aacbe665b4fdfb4b9c697b243df6c48af6168502 Mon Sep 17 00:00:00 2001 From: gprggr Date: Tue, 30 Dec 2014 21:19:51 +0100 Subject: [PATCH] diskv: missing f.Close() in writeStreamWithLock(...) --- diskv.go | 1 + 1 file changed, 1 insertion(+) diff --git a/diskv.go b/diskv.go index 512b535..60387ec 100644 --- a/diskv.go +++ b/diskv.go @@ -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) }