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:
Michal Privoznik 2019-03-29 16:33:51 +01:00
parent 7086c835b6
commit a0d53fdab9

View File

@ -1158,8 +1158,6 @@ mymain(void)
QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM,
QEMU_CAPS_VIRTIO_PCI_ATS);
virObjectUnref(cfg);
DO_TEST("acpi-table", NONE);
DO_TEST("video-device-pciaddr-default",
@ -1297,6 +1295,7 @@ mymain(void)
if (getenv("LIBVIRT_SKIP_CLEANUP") == NULL)
virFileDeleteTree(fakerootdir);
virObjectUnref(cfg);
qemuTestDriverFree(&driver);
VIR_FREE(fakerootdir);