Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ec6839

Browse files
author
Vicent Marti
committed
Merge pull request libgit2#3551 from libgit2/vmg/commit-leak
commit: Fix memory leak in test suite
2 parents 1850c99 + 5951445 commit 9ec6839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/commit/commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void assert_commit_body(const char *expected, const char *given)
7272
dummy->raw_message = git__strdup(given);
7373
cl_assert_equal_s(expected, git_commit_body(dummy));
7474

75-
git_commit_free(dummy);
75+
git_commit__free(dummy);
7676
}
7777

7878
void test_commit_commit__summary(void)

0 commit comments

Comments
 (0)