]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix double free when live-attaching shmem
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 9 Nov 2016 16:40:17 +0000 (17:40 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 9 Nov 2016 16:52:17 +0000 (17:52 +0100)
commitcca34e38fd32dbafa2c647f41a7dfb30d1e2e0a9
tree53ec59f0668eb139b73848bb44a8f4226cadb553
parente66603539b9b8b24c737b40805b4bbd99369b6b8
qemu: Fix double free when live-attaching shmem

Function qemuDomainAttachShmemDevice() steals the device data if the
hotplug was successful, but the condition checked for unsuccessful
execution otherwise.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_driver.c