mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemuxml2xmltest: Move virObjectUnref() call
The current location looks very arbitrary. Move it to the end of the mymain() function so it is less confusing. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
7086c835b6
commit
a0d53fdab9
@ -1158,8 +1158,6 @@ mymain(void)
|
|||||||
QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM,
|
QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM,
|
||||||
QEMU_CAPS_VIRTIO_PCI_ATS);
|
QEMU_CAPS_VIRTIO_PCI_ATS);
|
||||||
|
|
||||||
virObjectUnref(cfg);
|
|
||||||
|
|
||||||
DO_TEST("acpi-table", NONE);
|
DO_TEST("acpi-table", NONE);
|
||||||
|
|
||||||
DO_TEST("video-device-pciaddr-default",
|
DO_TEST("video-device-pciaddr-default",
|
||||||
@ -1297,6 +1295,7 @@ mymain(void)
|
|||||||
if (getenv("LIBVIRT_SKIP_CLEANUP") == NULL)
|
if (getenv("LIBVIRT_SKIP_CLEANUP") == NULL)
|
||||||
virFileDeleteTree(fakerootdir);
|
virFileDeleteTree(fakerootdir);
|
||||||
|
|
||||||
|
virObjectUnref(cfg);
|
||||||
qemuTestDriverFree(&driver);
|
qemuTestDriverFree(&driver);
|
||||||
VIR_FREE(fakerootdir);
|
VIR_FREE(fakerootdir);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user