[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v5 1/6] tests: fix memory leak in virtio-scsi-test
From: |
Thomas Huth |
Subject: |
Re: [Qemu-ppc] [PATCH v5 1/6] tests: fix memory leak in virtio-scsi-test |
Date: |
Mon, 17 Oct 2016 12:35:56 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
On 17.10.2016 12:30, Laurent Vivier wrote:
> vs is allocated in qvirtio_scsi_pci_init() and never freed.
>
> Signed-off-by: Laurent Vivier <address@hidden>
> Reviewed-by: Greg Kurz <address@hidden>
> ---
> tests/virtio-scsi-test.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/virtio-scsi-test.c b/tests/virtio-scsi-test.c
> index 79088bb..94d75b1 100644
> --- a/tests/virtio-scsi-test.c
> +++ b/tests/virtio-scsi-test.c
> @@ -64,6 +64,7 @@ static void qvirtio_scsi_pci_free(QVirtIOSCSI *vs)
> qvirtio_pci_device_disable(container_of(vs->dev, QVirtioPCIDevice,
> vdev));
> g_free(vs->dev);
> qpci_free_pc(vs->bus);
> + g_free(vs);
> }
>
> static uint64_t qvirtio_scsi_alloc(QVirtIOSCSI *vs, size_t alloc_size,
>
Reviewed-by: Thomas Huth <address@hidden>
- [Qemu-ppc] [PATCH v5 0/6] tests: enable virtio tests on SPAPR, Laurent Vivier, 2016/10/17
- [Qemu-ppc] [PATCH v5 1/6] tests: fix memory leak in virtio-scsi-test, Laurent Vivier, 2016/10/17
- Re: [Qemu-ppc] [PATCH v5 1/6] tests: fix memory leak in virtio-scsi-test,
Thomas Huth <=
- [Qemu-ppc] [PATCH v5 2/6] tests: don't check if qtest_spapr_boot() returns NULL, Laurent Vivier, 2016/10/17
- [Qemu-ppc] [PATCH v5 4/6] tests: rename target_big_endian() as qvirtio_is_big_endian(), Laurent Vivier, 2016/10/17
- [Qemu-ppc] [PATCH v5 3/6] tests: move QVirtioBus pointer into QVirtioDevice, Laurent Vivier, 2016/10/17
- [Qemu-ppc] [PATCH v5 6/6] tests: enable virtio tests on SPAPR, Laurent Vivier, 2016/10/17
- [Qemu-ppc] [PATCH v5 5/6] tests: use qtest_pc_boot()/qtest_shutdown() in virtio tests, Laurent Vivier, 2016/10/17
- Re: [Qemu-ppc] [PATCH v5 0/6] tests: enable virtio tests on SPAPR, David Gibson, 2016/10/17