Commit f7dcd58cc722d501665bc8c5b53945859b8b0615

Carlos Martín Nieto 2016-12-17T00:55:06

rebase: plug a leak in the tests

1
2
3
4
5
6
7
8
9
10
11
12
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);