Re: [Qemu-devel] [PATCH v2 29/30] tests: fix virtio-blk-test leaks

2017-02-28 Thread Eric Blake
On 02/21/2017 08:14 AM, Marc-André Lureau wrote: > Use qvirtio_pci_device_find_slot() to avoid leaking the non-hp > device. Add assert() to avoid further leaks in the future. > > Use qvirtio_pci_device_free() to correctly free QVirtioPCIDevice. Yep, the hunk I mentioned in 28/30 probably belongs

[Qemu-devel] [PATCH v2 29/30] tests: fix virtio-blk-test leaks

2017-02-21 Thread Marc-André Lureau
Use qvirtio_pci_device_find_slot() to avoid leaking the non-hp device. Add assert() to avoid further leaks in the future. Use qvirtio_pci_device_free() to correctly free QVirtioPCIDevice. Signed-off-by: Marc-André Lureau --- tests/libqos/virtio-pci.c | 1 +