mirror of
https://github.com/restic/restic.git
synced 2026-10-07 03:07:11 +00:00
pack: Close encrypting writer on error
This commit is contained in:
1 parent
77a819a925
commit
a40299fa24
1 file changed
+1
@@ -141,6 +141,7 @@ func (p *Packer) Finalize() (int64, error) {
|
||||
|
||||
err := binary.Write(wr, binary.LittleEndian, entry)
|
||||
if err != nil {
|
||||
wr.Close()
|
||||
return int64(n), err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user