diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-02-06 09:21:19 +0000 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-03-01 11:51:28 +0400 |
commit | 3caab54d081bb3ce1b237d9628dd2b8ee7680159 (patch) | |
tree | 6c14a9f136cf5aff7dc3c3e63986864ea1f787ae | |
parent | 448fe3c1349b540c66e048788dd98b9c80775c53 (diff) |
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>
-rw-r--r-- | tests/virtio-scsi-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/virtio-scsi-test.c b/tests/virtio-scsi-test.c index 69220ef07b..0eabd56fd9 100644 --- a/tests/virtio-scsi-test.c +++ b/tests/virtio-scsi-test.c @@ -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); } |