]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: Don't leak 'disk' if VM crashes during unplug finishing
authorPeter Krempa <pkrempa@redhat.com>
Fri, 13 Jul 2018 10:54:26 +0000 (12:54 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 20 Jul 2018 12:23:09 +0000 (14:23 +0200)
commitee46360b43423bc954efb8d1e4a35cdf2dc7aefb
tree37b927d676ecb22cd8c32a03d855fc981b50dd04
parentd3f9dda2c9fd9fa7d2f7f1f1dd70ed7d83938101
qemu: hotplug: Don't leak 'disk' if VM crashes during unplug finishing

qemuDomainRemoveDiskDevice would leak the disk to be removed if the VM
crashed since it was removed from the definition but not freed.

Broken in commit 105bcdde76b which moved the removal from the definition
earlier.

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