qemu/tests/qtest/libqos
Pan Nengyuan 77c24259b6 boot-order-test: fix memleaks in boot-order-test
It's not a big deal, but 'check qtest-ppc/ppc64' runs fail if sanitizers is enabled.
The memory leak stack is as follow:

Direct leak of 128 byte(s) in 4 object(s) allocated from:
    #0 0x7f11756f5970 in __interceptor_calloc (/lib64/libasan.so.5+0xef970)
    #1 0x7f1174f2549d in g_malloc0 (/lib64/libglib-2.0.so.0+0x5249d)
    #2 0x556af05aa7da in mm_fw_cfg_init /mnt/sdb/qemu/tests/libqos/fw_cfg.c:119
    #3 0x556af059f4f5 in read_boot_order_pmac /mnt/sdb/qemu/tests/boot-order-test.c:137
    #4 0x556af059efe2 in test_a_boot_order /mnt/sdb/qemu/tests/boot-order-test.c:47
    #5 0x556af059f2c0 in test_boot_orders /mnt/sdb/qemu/tests/boot-order-test.c:59
    #6 0x556af059f52d in test_pmac_oldworld_boot_order /mnt/sdb/qemu/tests/boot-order-test.c:152
    #7 0x7f1174f46cb9  (/lib64/libglib-2.0.so.0+0x73cb9)
    #8 0x7f1174f46b73  (/lib64/libglib-2.0.so.0+0x73b73)
    #9 0x7f1174f46b73  (/lib64/libglib-2.0.so.0+0x73b73)
    #10 0x7f1174f46f71 in g_test_run_suite (/lib64/libglib-2.0.so.0+0x73f71)
    #11 0x7f1174f46f94 in g_test_run (/lib64/libglib-2.0.so.0+0x73f94)

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Message-Id: <20200203025935.36228-1-pannengyuan@huawei.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2020-02-04 09:00:57 +01:00
..
aarch64-xlnx-zcu102-machine.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
ahci.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
ahci.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
arm-imx25-pdk-machine.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
arm-n800-machine.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
arm-raspi2-machine.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
arm-sabrelite-machine.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
arm-smdkc210-machine.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
arm-virt-machine.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
arm-xilinx-zynq-a9-machine.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
e1000e.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
e1000e.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
fw_cfg.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
fw_cfg.h boot-order-test: fix memleaks in boot-order-test 2020-02-04 09:00:57 +01:00
i2c-imx.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
i2c-omap.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
i2c.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
i2c.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
libqos-pc.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
libqos-pc.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
libqos-spapr.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
libqos-spapr.h tests: Silence various warnings with pseries 2020-02-03 11:33:11 +11:00
libqos.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
libqos.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
malloc-pc.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
malloc-pc.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
malloc-spapr.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
malloc-spapr.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
malloc.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
malloc.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
pci-pc.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
pci-pc.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
pci-spapr.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
pci-spapr.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
pci.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
pci.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
ppc64_pseries-machine.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
qgraph_internal.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
qgraph.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
qgraph.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
rtas.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
rtas.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
sdhci.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
sdhci.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
tpci200.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
usb.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
usb.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-9p.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-9p.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-balloon.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-balloon.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-blk.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-blk.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-mmio.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-mmio.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-net.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-net.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-pci-modern.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-pci-modern.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-pci.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-pci.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-rng.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-rng.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-scsi.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-scsi.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-serial.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio-serial.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
virtio.h tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00
x86_64_pc-machine.c tests/libqos: Move the libqos files under tests/qtest/ 2020-01-12 11:42:41 +01:00