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
test_list_remote_related_refs: Don't leak list of subpaths
Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Feb 15, 2024
commit 55b52f06a8c636ae2c0e0057a9bef65b3372d1eb
1 change: 1 addition & 0 deletions tests/testlibrary.c
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,7 @@ test_list_remote_related_refs (void)
g_assert_true (should_download);
g_assert_true (should_delete);
g_assert_false (should_autoprune);
g_clear_pointer (&subpaths, g_strfreev);

ref = g_ptr_array_index (refs, 1);
g_assert_cmpstr (flatpak_ref_get_name (FLATPAK_REF (ref)), ==, "org.test.Hello.Plugin.fun");
Expand Down