[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/12] test-util-sockets: Fix a memleak in test_socket_unix_abstr
From: |
Pan Nengyuan |
Subject: |
[PATCH 12/12] test-util-sockets: Fix a memleak in test_socket_unix_abstract_good |
Date: |
Fri, 14 Aug 2020 12:02:41 -0400 |
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>
---
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