Skip to content

Commit 30a876c

Browse files
committed
tests: fetchhead: fix memory leak
1 parent 61ad9bc commit 30a876c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/online/fetchhead.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ void test_online_fetchhead__explicit_dst_refspec_creates_branch(void)
126126

127127
cl_git_pass(git_branch_lookup(&ref, g_repo, "explicit-refspec", GIT_BRANCH_ALL));
128128
cl_assert_equal_i(refs + 1, count_references());
129+
130+
git_reference_free(ref);
129131
}
130132

131133
void test_online_fetchhead__empty_dst_refspec_creates_no_branch(void)

0 commit comments

Comments
 (0)