summaryrefslogtreecommitdiff
path: root/tests/online
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-08-15 11:10:27 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2014-08-15 11:12:42 -0400
commitf96e7e6c94e4c414b4ec7e3a7bb37482488b3a80 (patch)
treeabea384159a56504cb01154598389a0bb13ad82d /tests/online
parent0f29e96793eda1f9a4a16d90f1a888cfa3d4deac (diff)
downloadlibgit2-f96e7e6c94e4c414b4ec7e3a7bb37482488b3a80.tar.gz
Free references during push validation
Diffstat (limited to 'tests/online')
-rw-r--r--tests/online/push.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/online/push.c b/tests/online/push.c
index 038cab12e..c351827d9 100644
--- a/tests/online/push.c
+++ b/tests/online/push.c
@@ -204,6 +204,8 @@ static void verify_tracking_branches(git_remote *remote, expected_ref expected_r
cl_assert_equal_i(branch_type, GIT_BRANCH_REMOTE);
cl_git_pass(git_vector_insert(&actual_refs, git__strdup(git_reference_name(ref))));
+
+ git_reference_free(ref);
}
cl_assert_equal_i(error, GIT_ITEROVER);