[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 07/37] tests: fix test-iov leaks
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 07/37] tests: fix test-iov leaks |
Date: |
Tue, 19 Jul 2016 14:46:35 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 07/19/2016 02:54 AM, address@hidden wrote:
> From: Marc-André Lureau <address@hidden>
>
> Spotted thanks to ASAN.
>
> Signed-off-by: Marc-André Lureau <address@hidden>
> ---
> tests/test-iov.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/tests/test-iov.c b/tests/test-iov.c
> index 46ae25e..a22d71f 100644
> --- a/tests/test-iov.c
> +++ b/tests/test-iov.c
> @@ -208,6 +208,9 @@ static void test_io(void)
> } while(k < j);
> }
> }
> + iov_free(iov, niov);
> + g_free(buf);
> + g_free(siov);
> exit(0);
Calling exit() implicitly frees things, but I'm not opposed to the patch.
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH 02/37] tests: fix test-qga leaks, (continued)
- [Qemu-devel] [PATCH 03/37] qga: free the whole blacklist, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 04/37] qga: free remaining leaking state, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 05/37] tests: fix test-cutils leaks, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 06/37] tests: fix test-vmstate leaks, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 07/37] tests: fix test-iov leaks, marcandre . lureau, 2016/07/19
- Re: [Qemu-devel] [PATCH 07/37] tests: fix test-iov leaks,
Eric Blake <=
- [Qemu-devel] [PATCH 08/37] qdist: fix entries memory leak, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 09/37] tests: fix check-qom-interface leaks, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 10/37] tests: fix check-qom-proplist leaks, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 11/37] tests: fix small leak in test-io-channel-command, marcandre . lureau, 2016/07/19