Commit 9621281304e5b1e418c09f3830e7fcdc7e990e82

Edward Thomson 2018-06-11T17:11:36

stash test: free the commit

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 c37bad4..8650dae 100644
--- a/tests/stash/save.c
+++ b/tests/stash/save.c
@@ -226,6 +226,7 @@ void test_stash_save__untracked_regression(void)
 	assert_commit_message_contains("refs/stash", "WIP on master");
 
 	git_reference_free(head);
+	git_commit_free(head_commit);
 	git_buf_free(&untracked_dir);
 }