[glib: 6/10] tests: Fix a memory leak in the tls-certificate test




commit c60a0a45de361028dca86756a3e3925784c79307
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri Feb 18 02:33:39 2022 +0000

    tests: Fix a memory leak in the tls-certificate test
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 gio/tests/tls-certificate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/tls-certificate.c b/gio/tests/tls-certificate.c
index 03d17b80c..bae582357 100644
--- a/gio/tests/tls-certificate.c
+++ b/gio/tests/tls-certificate.c
@@ -559,7 +559,7 @@ dns_names (void)
   g_assert_cmpuint (actual->len, ==, 1);
   g_assert_true (g_ptr_array_find_with_equal_func (actual, expected, (GEqualFunc)g_bytes_equal, NULL));
 
-  g_ptr_array_free (actual, FALSE);
+  g_ptr_array_unref (actual);
   g_bytes_unref (expected);
   g_object_unref (cert);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]