Commit 123f01f07b009adaab3239604298579642f69183

Edward Thomson 2018-06-10T12:21:43

stash test: free the reference

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests/stash/save.c b/tests/stash/save.c
index 5c2d494..c37bad4 100644
--- a/tests/stash/save.c
+++ b/tests/stash/save.c
@@ -225,6 +225,7 @@ void test_stash_save__untracked_regression(void)
 
 	assert_commit_message_contains("refs/stash", "WIP on master");
 
+	git_reference_free(head);
 	git_buf_free(&untracked_dir);
 }