提交 a0d53fda 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 7086c835
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册