mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-06 18:52:21 +00:00
tests: plug a couple of leaks
This commit is contained in:
parent
3a5e8faee7
commit
2086e1baef
@ -897,6 +897,7 @@ void test_diff_workdir__can_diff_empty_file(void)
|
||||
/* baseline - make sure there are no outstanding diffs */
|
||||
|
||||
cl_git_pass(git_diff_tree_to_workdir(&diff, g_repo, tree, &opts));
|
||||
git_tree_free(tree);
|
||||
cl_assert_equal_i(2, (int)git_diff_num_deltas(diff));
|
||||
git_diff_list_free(diff);
|
||||
|
||||
|
||||
@ -23,5 +23,5 @@ void test_network_cred__stock_userpass_validates_that_method_is_allowed(void)
|
||||
|
||||
cl_git_fail(git_cred_userpass(&cred, NULL, 0, &payload));
|
||||
cl_git_pass(git_cred_userpass(&cred, NULL, GIT_CREDTYPE_USERPASS_PLAINTEXT, &payload));
|
||||
git__free(cred);
|
||||
cred->free(cred);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user