tests: plug a leak

This commit is contained in:
Carlos Martín Nieto 2016-03-03 11:17:36 +01:00
parent edaffe22a2
commit 9b3fc895b7

View File

@ -133,6 +133,7 @@ void test_refs_create__oid_unknown_succeeds_by_default(void)
/* Create and write the new object id reference */ /* Create and write the new object id reference */
cl_git_pass(git_reference_create(&new_reference, g_repo, new_head, &id, 0, NULL)); cl_git_pass(git_reference_create(&new_reference, g_repo, new_head, &id, 0, NULL));
git_reference_free(new_reference);
/* Ensure the reference can't be looked-up... */ /* Ensure the reference can't be looked-up... */
cl_git_pass(git_reference_lookup(&looked_up_ref, g_repo, new_head)); cl_git_pass(git_reference_lookup(&looked_up_ref, g_repo, new_head));