Commit f96e7e6c94e4c414b4ec7e3a7bb37482488b3a80

Edward Thomson 2014-08-15T11:10:27

Free references during push validation

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/online/push.c b/tests/online/push.c
index 038cab1..c351827 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);