]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: perf: Fix crash/memory corruption on failed VM start
authorPeter Krempa <pkrempa@redhat.com>
Thu, 7 Apr 2016 10:50:15 +0000 (12:50 +0200)
committerCole Robinson <crobinso@redhat.com>
Wed, 20 Apr 2016 13:10:34 +0000 (09:10 -0400)
commit5f91518937129a6f02ac33317905dc0d0c7ce949
treeabdad2ac5a8f9307cb61a5cddc0c400a97cbb412
parentd3fba07bc09993638aac3550263b43d65510a19f
qemu: perf: Fix crash/memory corruption on failed VM start

The new perf code didn't bother to clear a pointer in 'priv' causing a
double free or other memory corruption goodness if a VM failed to start.

Clear the pointer after freeing the memory.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1324757
(cherry picked from commit 03e8d5fb54c7c897225ed9ea56d83b894930f144)
src/qemu/qemu_process.c