Commit c655def1174f814c2adcafff7cecec4d47dc5830

Carlos Martín Nieto 2016-12-17T01:12:49

Merge pull request #4031 from libgit2/cmn/plug-test-leak 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);