]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't free PCI device if adding it to activePciHostdevs fails
authorJiri Denemark <jdenemar@redhat.com>
Fri, 30 Nov 2012 15:52:03 +0000 (16:52 +0100)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 21:53:41 +0000 (16:53 -0500)
commit9034c9286e858abac01255faa9a5e2c20de0f65e
tree9cd36a07d71a0fdda7032934872e47a8feda2c49
parent618740715464fbd6805c558d354e3e6336fe1ec6
qemu: Don't free PCI device if adding it to activePciHostdevs fails

The device is still referenced from pcidevs and freeing it would leave
an invalid pointer there.
(cherry picked from commit ea1a9b5fddd1562abf31eb5c2502879bfd25903e)
src/qemu/qemu_hostdev.c