]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix qemuProcessAutoDestroy
authorJohn Ferlan <jferlan@redhat.com>
Tue, 27 Mar 2018 15:53:41 +0000 (11:53 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 9 Apr 2018 22:25:51 +0000 (18:25 -0400)
commit67757b066c3bc347d50ffcb3761a4b88aa773a7f
tree16352676ce0f49925fed0a82d144629478d4f4d9
parent990dd4b356a2ce29babdfb91a50ef365eb15bc62
qemu: Fix qemuProcessAutoDestroy

Upon entry from virCloseCallbacksRun, the @dom will have a
Ref and Lock from virDomainObjListFindByUUIDRef, so there's
no need to take an extra reference nor should the code call
virDomainObjEndAPI when done since that both Unref's and
Unlock's the @dom which means the callers call to EndAPI
would be unlocking an unlocked object. At least the Ref
saved the code from referencing something already freed.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
src/qemu/qemu_process.c