mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-02 05:07:15 +00:00
tests: fetchhead: fix memory leak
This commit is contained in:
parent
61ad9bcd38
commit
30a876cda6
@ -126,6 +126,8 @@ void test_online_fetchhead__explicit_dst_refspec_creates_branch(void)
|
||||
|
||||
cl_git_pass(git_branch_lookup(&ref, g_repo, "explicit-refspec", GIT_BRANCH_ALL));
|
||||
cl_assert_equal_i(refs + 1, count_references());
|
||||
|
||||
git_reference_free(ref);
|
||||
}
|
||||
|
||||
void test_online_fetchhead__empty_dst_refspec_creates_no_branch(void)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user