Merge pull request #4031 from libgit2/cmn/plug-test-leak rebase: plug a leak in the tests
diff --git a/tests/rebase/merge.c b/tests/rebase/merge.c
index 8492c63..7b2d687 100644
--- a/tests/rebase/merge.c
+++ b/tests/rebase/merge.c
@@ -523,6 +523,7 @@ void test_rebase_merge__detached_finish(void)
git_reflog_free(reflog);
git_annotated_commit_free(branch_head);
git_annotated_commit_free(upstream_head);
+ git_reference_free(head_ref);
git_reference_free(branch_ref);
git_reference_free(upstream_ref);
git_rebase_free(rebase);