mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-06 19:54:40 +00:00
test: fix memory leak
This commit is contained in:
parent
3dee36557e
commit
4e547eee31
@ -52,6 +52,8 @@ void test_network_fetchlocal__partial(void)
|
|||||||
cl_git_pass(git_remote_download(origin, transfer_cb, &callcount));
|
cl_git_pass(git_remote_download(origin, transfer_cb, &callcount));
|
||||||
cl_git_pass(git_remote_update_tips(origin));
|
cl_git_pass(git_remote_update_tips(origin));
|
||||||
|
|
||||||
|
git_strarray_free(&refnames);
|
||||||
|
|
||||||
cl_git_pass(git_reference_list(&refnames, repo, GIT_REF_LISTALL));
|
cl_git_pass(git_reference_list(&refnames, repo, GIT_REF_LISTALL));
|
||||||
cl_assert_equal_i(19, refnames.count); /* 18 remote + 1 local */
|
cl_assert_equal_i(19, refnames.count); /* 18 remote + 1 local */
|
||||||
cl_assert(callcount > 0);
|
cl_assert(callcount > 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user