mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-22 02:23:22 +00:00
test: Fix memory leak
This commit is contained in:
parent
c4ac556ee7
commit
d90390c162
@ -587,6 +587,8 @@ void test_checkout_index__target_directory_from_bare(void)
|
|||||||
|
|
||||||
cl_git_pass(git_futils_rmdir_r(
|
cl_git_pass(git_futils_rmdir_r(
|
||||||
"alternative", NULL, GIT_RMDIR_REMOVE_FILES));
|
"alternative", NULL, GIT_RMDIR_REMOVE_FILES));
|
||||||
|
|
||||||
|
git_object_free(head);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_checkout_index__can_get_repo_from_index(void)
|
void test_checkout_index__can_get_repo_from_index(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user