tests: Fix a memory leak in the tls-certificate test

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-02-18 02:33:39 +00:00
parent a4ce8399cd
commit c60a0a45de

View File

@ -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);
}