]> xenbits.xensource.com Git - 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)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 7 Apr 2016 10:50:15 +0000 (12:50 +0200)
commit03e8d5fb54c7c897225ed9ea56d83b894930f144
tree53a7a60af333348ac9954e2475e6dcf698493c16
parentbe6e92f541ab27019de530f1f08ec9b2912765a9
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
src/qemu/qemu_process.c