]> git.proxmox.com Git - libgit2.git/commitdiff
commit: Fix memory leak in test suite
authorVicent Marti <tanoku@gmail.com>
Thu, 17 Dec 2015 09:13:04 +0000 (10:13 +0100)
committerVicent Marti <tanoku@gmail.com>
Thu, 17 Dec 2015 09:13:04 +0000 (10:13 +0100)
tests/commit/commit.c

index c82971f4b989cae0559d885b90a0e26f69ab00d5..c052cd5686109910994b29eda7b39eccb46ae6fe 100644 (file)
@@ -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)