Commit d15b6132a6453d696b37c884765572a696e7af06

lhchavez 2021-07-30T07:18:57

Fix one memory leak in master There was one test that wasn't correctly disposing of the repository.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/refs/branches/upstream.c b/tests/refs/branches/upstream.c
index c94afe9..919705e 100644
--- a/tests/refs/branches/upstream.c
+++ b/tests/refs/branches/upstream.c
@@ -92,6 +92,8 @@ void test_refs_branches_upstream__upstream_merge(void)
 	cl_git_pass(git_branch_upstream_merge(&buf, repository, "refs/heads/test"));
 	cl_assert_equal_s("refs/heads/master", buf.ptr);
 	git_buf_dispose(&buf);
+
+	cl_git_sandbox_cleanup();
 }
 
 void test_refs_branches_upstream__upstream_remote_empty_value(void)