Commit 5951445fb3d85bfbe4ccc16ca01210081676e7c5

Vicent Marti 2015-12-17T10:13:04

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)