Commit 9ec6839a72db4c013c9bb9da07d37a782bccc7d0

Vicent Marti 2015-12-17T10:29:58

Merge pull request #3551 from libgit2/vmg/commit-leak commit: Fix memory leak in test suite

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/commit/commit.c b/tests/commit/commit.c
index c82971f..c052cd5 100644
--- a/tests/commit/commit.c
+++ b/tests/commit/commit.c
@@ -72,7 +72,7 @@ void assert_commit_body(const char *expected, const char *given)
 	dummy->raw_message = git__strdup(given);
 	cl_assert_equal_s(expected, git_commit_body(dummy));
 
-	git_commit_free(dummy);
+	git_commit__free(dummy);
 }
 
 void test_commit_commit__summary(void)