Commit d90390c162418deb62302b3f56835ff781c0cfee

nulltoken 2013-06-29T13:38:27

test: Fix memory leak

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests-clar/checkout/index.c b/tests-clar/checkout/index.c
index 9d8b321..982bf9e 100644
--- a/tests-clar/checkout/index.c
+++ b/tests-clar/checkout/index.c
@@ -587,6 +587,8 @@ void test_checkout_index__target_directory_from_bare(void)
 
 	cl_git_pass(git_futils_rmdir_r(
 		"alternative", NULL, GIT_RMDIR_REMOVE_FILES));
+
+	git_object_free(head);
 }
 
 void test_checkout_index__can_get_repo_from_index(void)