diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-02-07 16:55:14 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-03-01 11:58:57 +0400 |
commit | 80e1eea37a25a7696137e680285e36d0bfdc9f34 (patch) | |
tree | ddd94260713176d1eecf691881f3dba3d3fb6bcd /hw/9pfs | |
parent | c4523aae0664aecaa366d45e3d0f3d810ca33062 (diff) | |
download | qemu-80e1eea37a25a7696137e680285e36d0bfdc9f34.zip qemu-80e1eea37a25a7696137e680285e36d0bfdc9f34.tar.gz qemu-80e1eea37a25a7696137e680285e36d0bfdc9f34.tar.bz2 |
tests: fix virtio-blk-test leaks
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 <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'hw/9pfs')
0 files changed, 0 insertions, 0 deletions