mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-15 03:20:38 +01:00
keyfile/tests: fix memleaks in test code for valgrind
(cherry picked from commit 9a2f2ed7fd)
This commit is contained in:
parent
ac8ea4f799
commit
f334c4a7f1
1 changed files with 5 additions and 0 deletions
|
|
@ -1515,6 +1515,7 @@ test_write_intlike_ssid (void)
|
|||
g_assert_no_error (error);
|
||||
g_assert (tmp);
|
||||
g_assert_cmpstr (tmp, ==, "101");
|
||||
g_free (tmp);
|
||||
|
||||
g_key_file_free (keyfile);
|
||||
|
||||
|
|
@ -1601,6 +1602,7 @@ test_write_intlike_ssid_2 (void)
|
|||
g_assert_no_error (error);
|
||||
g_assert (tmp);
|
||||
g_assert_cmpstr (tmp, ==, "11\\;12\\;13\\;");
|
||||
g_free (tmp);
|
||||
|
||||
g_key_file_free (keyfile);
|
||||
|
||||
|
|
@ -2511,6 +2513,7 @@ test_write_wired_8021x_tls_connection_path (void)
|
|||
tmp2 = g_path_get_dirname (testfile);
|
||||
if (g_strcmp0 (tmp2, TEST_KEYFILES_DIR) == 0)
|
||||
relative = TRUE;
|
||||
g_free (tmp2);
|
||||
|
||||
/* CA cert */
|
||||
tmp = g_key_file_get_string (keyfile,
|
||||
|
|
@ -3115,6 +3118,7 @@ test_write_new_wired_group_name (void)
|
|||
unlink (testfile);
|
||||
g_free (testfile);
|
||||
|
||||
g_key_file_unref (kf);
|
||||
g_object_unref (reread);
|
||||
g_object_unref (connection);
|
||||
}
|
||||
|
|
@ -3253,6 +3257,7 @@ test_write_new_wireless_group_names (void)
|
|||
unlink (testfile);
|
||||
g_free (testfile);
|
||||
|
||||
g_key_file_unref (kf);
|
||||
g_object_unref (reread);
|
||||
g_object_unref (connection);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue