mirror of
https://github.com/restic/restic.git
synced 2024-12-23 00:07:25 +00:00
pack: Close encrypting writer on error
This commit is contained in:
parent
77a819a925
commit
a40299fa24
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue