[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 12/12] test-util-sockets: Fix a memleak in test_socket_unix_a
From: |
Li Qiang |
Subject: |
Re: [PATCH 12/12] test-util-sockets: Fix a memleak in test_socket_unix_abstract_good |
Date: |
Fri, 14 Aug 2020 22:50:06 +0800 |
Pan Nengyuan <pannengyuan@huawei.com> 于2020年8月14日周五 下午6:18写道:
>
> Fix a memleak in test_socket_unix_abstract_good().
>
> Reported-by: Euler Robot <euler.robot@huawei.com>
> Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
> ---
Hi Nengyuan,
I have sent this two month ago:
-->https://lists.gnu.org/archive/html/qemu-devel/2020-06/msg00809.html
seems the maintainer forget to push it to upstream.
Thanks,
Li Qiang
> tests/test-util-sockets.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/test-util-sockets.c b/tests/test-util-sockets.c
> index 261dc48c03..5c4204a130 100644
> --- a/tests/test-util-sockets.c
> +++ b/tests/test-util-sockets.c
> @@ -312,6 +312,7 @@ static void test_socket_unix_abstract_good(void)
> g_thread_join(cli);
> g_thread_join(serv);
>
> + g_rand_free(r);
> g_free(abstract_sock_name);
> }
> #endif
> --
> 2.18.2
>
>
- [PATCH 04/12] elf2dmp/pdb: Plug memleak in pdb_init_from_file, (continued)
- [PATCH 12/12] test-util-sockets: Fix a memleak in test_socket_unix_abstract_good, Pan Nengyuan, 2020/08/14
- Re: [PATCH 12/12] test-util-sockets: Fix a memleak in test_socket_unix_abstract_good,
Li Qiang <=
- [PATCH 11/12] vnc-auth-sasl: Plug memleak in vnc_socket_ip_addr_string, Pan Nengyuan, 2020/08/14
- [PATCH 10/12] block/file-posix: fix a possible undefined behavior, Pan Nengyuan, 2020/08/14
- Re: [PATCH 00/12] fix some error memleaks, Pan Nengyuan, 2020/08/26