From 61ad9bcd3893df47e9856892d1fd38c1da514dd7 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Thu, 27 Oct 2016 11:26:52 +0200 Subject: [PATCH 1/2] tests: vector: fix memory leak --- tests/core/vector.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/core/vector.c b/tests/core/vector.c index 336254cce..c2e5d3f34 100644 --- a/tests/core/vector.c +++ b/tests/core/vector.c @@ -404,4 +404,6 @@ void test_core_vector__reverse(void) for (i = 0; i < 5; i++) cl_assert_equal_p(out2[i], git_vector_get(&v, i)); + + git_vector_free(&v); } From 30a876cda6800289d206f823d93aae0d2847a467 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Thu, 27 Oct 2016 11:29:15 +0200 Subject: [PATCH 2/2] tests: fetchhead: fix memory leak --- tests/online/fetchhead.c | 2 ++ 1 file changed, 2 insertions(+) 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)