Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory errors in testlibrary and other test code #5691

Merged
merged 10 commits into from
Feb 15, 2024
Prev Previous commit
Next Next commit
testlibrary: Don't leak an array of related refs
Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Feb 15, 2024
commit 15f1204dfc5382f6662e291daed7a39423a21a2e
2 changes: 2 additions & 0 deletions tests/testlibrary.c
Original file line number Diff line number Diff line change
Expand Up @@ -4746,6 +4746,8 @@ test_list_installed_related_refs (void)
g_assert_true (g_strv_length ((char **) flatpak_related_ref_get_subpaths (ref)) == 1);
g_assert_cmpstr (flatpak_related_ref_get_subpaths (ref)[0], ==, "/de");

g_clear_pointer (&refs, g_ptr_array_unref);

// Make the test with extra-languages, instead of languages
clean_languages();
configure_extra_languages();
Expand Down