2
2
mirror of https://github.com/octoleo/restic.git synced 2024-05-29 07:00:49 +00:00

pack: Close encrypting writer on error

This commit is contained in:
Alexander Neumann 2015-04-29 23:58:58 +02:00
parent 77a819a925
commit a40299fa24

View File

@ -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
}