Commit 26d5c0b823bfce9106cbfa51c9c020874470f19e

Jeff Hostetler 2015-06-12T09:28:47

Fix leaks in tests/checkout/icase

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tests/checkout/icase.c b/tests/checkout/icase.c
index 510f542..55ab3ab 100644
--- a/tests/checkout/icase.c
+++ b/tests/checkout/icase.c
@@ -269,7 +269,9 @@ void test_checkout_icase__ignores_unstaged_casechange(void)
 	cl_git_pass(git_checkout_tree(repo, (const git_object *)br2, &checkout_opts));
 
 	git_commit_free(orig);
+	git_commit_free(br2);
 	git_reference_free(orig_ref);
+	git_reference_free(br2_ref);
 }
 
 void test_checkout_icase__conflicts_with_casechanged_subtrees(void)