mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 11:19:47 +00:00
Free references during push validation
This commit is contained in:
parent
0f29e96793
commit
f96e7e6c94
@ -204,6 +204,8 @@ static void verify_tracking_branches(git_remote *remote, expected_ref expected_r
|
|||||||
cl_assert_equal_i(branch_type, GIT_BRANCH_REMOTE);
|
cl_assert_equal_i(branch_type, GIT_BRANCH_REMOTE);
|
||||||
|
|
||||||
cl_git_pass(git_vector_insert(&actual_refs, git__strdup(git_reference_name(ref))));
|
cl_git_pass(git_vector_insert(&actual_refs, git__strdup(git_reference_name(ref))));
|
||||||
|
|
||||||
|
git_reference_free(ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
cl_assert_equal_i(error, GIT_ITEROVER);
|
cl_assert_equal_i(error, GIT_ITEROVER);
|
||||||
|
Loading…
Reference in New Issue
Block a user