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

Skip to content

Commit 9b3fc89

Browse files
committed
tests: plug a leak
1 parent edaffe2 commit 9b3fc89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/refs/create.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ void test_refs_create__oid_unknown_succeeds_by_default(void)
133133

134134
/* Create and write the new object id reference */
135135
cl_git_pass(git_reference_create(&new_reference, g_repo, new_head, &id, 0, NULL));
136+
git_reference_free(new_reference);
136137

137138
/* Ensure the reference can't be looked-up... */
138139
cl_git_pass(git_reference_lookup(&looked_up_ref, g_repo, new_head));

0 commit comments

Comments
 (0)