ref: f6ae436c5878bafeafa0bb2646a2c9b32c9b4380
parent: 2182ecfd34a24521bf0e3c939627a55327eb1e19
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Aug 11 16:19:07 EDT 2018
publisher: Close file when done Fixes #5062
--- a/publisher/publisher.go
+++ b/publisher/publisher.go
@@ -108,6 +108,7 @@
if err != nil {
return err
}
+ defer f.Close()
_, err = io.Copy(f, src)
if err == nil && d.StatCounter != nil {