mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 19:23:05 +00:00
Fix a leak in the tests
This commit is contained in:
parent
588a43af54
commit
430866d28c
@ -93,8 +93,8 @@ void test_odb_foreach__files_in_objects_dir(void)
|
||||
cl_git_pass(git_repository_open(&repo, "testrepo.git"));
|
||||
|
||||
cl_git_pass(git_buf_printf(&buf, "%s/objects/somefile", git_repository_path(repo)));
|
||||
|
||||
cl_git_mkfile(buf.ptr, "");
|
||||
git_buf_free(&buf);
|
||||
|
||||
cl_git_pass(git_repository_odb(&odb, repo));
|
||||
cl_git_pass(git_odb_foreach(odb, foreach_cb, &nobj));
|
||||
|
Loading…
Reference in New Issue
Block a user