[glib-networking] tests: fix leak introduced in 000e32b5
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] tests: fix leak introduced in 000e32b5
- Date: Wed, 23 Jun 2021 20:20:25 +0000 (UTC)
commit 1a0706de958b30a2c223d2810a228e49273b37a1
Author: Michael Catanzaro <mcatanzaro redhat com>
Date: Wed Jun 23 15:19:51 2021 -0500
tests: fix leak introduced in 000e32b5
Broken CI -> so many regressions. Must fix CI....
tls/tests/connection.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 540301b..f63aa9a 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -2942,6 +2942,7 @@ test_tls_info (TestConnection *test,
gconstpointer data)
{
GIOStream *connection;
+ char *ciphersuite_name;
GError *error = NULL;
connection = start_async_server_and_connect_to_it (test, G_TLS_AUTHENTICATION_NONE);
@@ -2965,7 +2966,9 @@ test_tls_info (TestConnection *test,
g_assert_no_error (test->server_error);
g_assert_cmpint (g_tls_connection_get_protocol_version (G_TLS_CONNECTION (test->client_connection)), !=,
G_TLS_PROTOCOL_VERSION_UNKNOWN);
- g_assert_nonnull (g_tls_connection_get_ciphersuite_name (G_TLS_CONNECTION (test->client_connection)));
+ ciphersuite_name = g_tls_connection_get_ciphersuite_name (G_TLS_CONNECTION (test->client_connection));
+ g_assert_nonnull (ciphersuite_name);
+ g_free (ciphersuite_name);
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]