[glib-networking] tests: plug a few leaks
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] tests: plug a few leaks
- Date: Thu, 3 Jun 2021 18:49:25 +0000 (UTC)
commit e297fb9082b450c88fc53246675a3d781439423f
Author: Ole André Vadla Ravnås <oleavr gmail com>
Date: Thu Jun 3 12:10:55 2021 +0200
tests: plug a few leaks
tls/tests/connection.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index f2d1b7c..a105ceb 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -2097,6 +2097,9 @@ test_unclean_close_by_server (TestConnection *test,
* disabling require_close_notify.
*/
g_clear_error (&test->read_error);
+ g_clear_object (&test->address);
+ g_clear_object (&test->identity);
+ g_socket_service_stop (test->service);
g_clear_object (&test->service);
g_clear_object (&test->server_connection);
g_clear_object (&test->client_connection);
@@ -2801,9 +2804,15 @@ test_connection_missing_server_identity (TestConnection *test,
g_clear_error (&test->read_error);
g_clear_error (&test->server_error);
+ g_clear_object (&test->address);
+ g_clear_object (&test->identity);
+
g_clear_object (&test->client_connection);
g_clear_object (&test->server_connection);
+ g_socket_service_stop (test->service);
+ g_clear_object (&test->service);
+
/* Now do the same thing again, this time ignoring bad identity. */
connection = start_async_server_and_connect_to_it (test, G_TLS_AUTHENTICATION_NONE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]