Skip to content

Commit 5951445

Browse files
committed
commit: Fix memory leak in test suite
1 parent 1850c99 commit 5951445

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)