]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: Need to relock afer virDomainObjListRemove
authorJohn Ferlan <jferlan@redhat.com>
Tue, 27 Mar 2018 17:39:52 +0000 (13:39 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 4 Apr 2018 10:53:22 +0000 (06:53 -0400)
commit7f8ac4bbc468121a80dcfb4e23e1f7c9f2aafc2c
treecfcc2d3ce7c7655f55adb670552f18755bca66fd
parent9c75425aa263abe248ab6c4895b57b9dae2a53ae
test: Need to relock afer virDomainObjListRemove

For all @dom's fetched from a testDomObjFromDomain because
virDomainObjListRemove will return an unlocked domain object
we should relock it prior to the cleanup label which will use
virDomainObjEndAPI which would Unlock and Unref the passed
object (and we should avoid unlocking an unlocked object).

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