From d90390c162418deb62302b3f56835ff781c0cfee Mon Sep 17 00:00:00 2001 From: nulltoken Date: Sat, 29 Jun 2013 13:38:27 +0200 Subject: [PATCH] test: Fix memory leak --- tests-clar/checkout/index.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests-clar/checkout/index.c b/tests-clar/checkout/index.c index 9d8b321ae..982bf9ee5 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)