Commit eb87800ab631d19a7655f01ece130455b1cc976a

Ben Straub 2012-08-06T09:34:17

Checkout: fix memory leak in tests.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests-clar/checkout/checkout.c b/tests-clar/checkout/checkout.c
index af3bae9..80e30bb 100644
--- a/tests-clar/checkout/checkout.c
+++ b/tests-clar/checkout/checkout.c
@@ -152,6 +152,8 @@ void test_checkout_checkout__dir_modes(void)
 	/* File-mode test, since we're on the 'dir' branch */
 	cl_git_pass(p_stat("./testrepo/a/b.txt", &st));
 	cl_assert_equal_i(st.st_mode & 0777, 0755);
+
+	git_reference_free(ref);
 #endif
 }