]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBackupDiskDataCleanupOne: Don't exit early when the job has started
authorPeter Krempa <pkrempa@redhat.com>
Tue, 23 Jun 2020 04:22:54 +0000 (06:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 23 Jun 2020 09:23:01 +0000 (11:23 +0200)
commit165b430eb9a1213ef32f14ace14d8377e9e71446
tree02be264d2d74eeb15d339a74808d01ea090962ed
parent214faa0b04ace42aebfa40e1d19aabbf3003f0fe
qemuBackupDiskDataCleanupOne: Don't exit early when the job has started

Originally the function was cleaning up a failed job only but now
there's other stuff that needs to be cleared too.

Make only steps which clean up after a failed job depend on the
'started' field and execute the rest of the code always.

This fixes a leak of the backup job tracking object and the blockdev-add
helper data.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_backup.c