mirror of https://gitee.com/openkylin/qemu.git
tests: fix virtio-scsi-test leak
Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
448fe3c134
commit
3caab54d08
|
@ -63,7 +63,7 @@ static void qvirtio_scsi_pci_free(QVirtIOSCSI *vs)
|
|||
qvirtqueue_cleanup(vs->dev->bus, vs->vq[i], vs->qs->alloc);
|
||||
}
|
||||
qvirtio_pci_device_disable(container_of(vs->dev, QVirtioPCIDevice, vdev));
|
||||
g_free(vs->dev);
|
||||
qvirtio_pci_device_free((QVirtioPCIDevice *)vs->dev);
|
||||
qvirtio_scsi_stop(vs->qs);
|
||||
g_free(vs);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue