diff options
author | Patrick Steinhardt <ps@pks.im> | 2016-10-27 11:29:15 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2016-10-27 11:29:15 +0200 |
commit | 30a876cda6800289d206f823d93aae0d2847a467 (patch) | |
tree | 95a31c5327ffa88255eaa9aba12bda03c93514de /tests/online | |
parent | 61ad9bcd3893df47e9856892d1fd38c1da514dd7 (diff) | |
download | libgit2-30a876cda6800289d206f823d93aae0d2847a467.tar.gz |
tests: fetchhead: fix memory leak
Diffstat (limited to 'tests/online')
-rw-r--r-- | tests/online/fetchhead.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/online/fetchhead.c b/tests/online/fetchhead.c index 9aaad253c..c1ac06dbe 100644 --- a/tests/online/fetchhead.c +++ b/tests/online/fetchhead.c @@ -126,6 +126,8 @@ void test_online_fetchhead__explicit_dst_refspec_creates_branch(void) cl_git_pass(git_branch_lookup(&ref, g_repo, "explicit-refspec", GIT_BRANCH_ALL)); cl_assert_equal_i(refs + 1, count_references()); + + git_reference_free(ref); } void test_online_fetchhead__empty_dst_refspec_creates_no_branch(void) |