Commit e6444dacb88e29e75fee81a87d1876db77d43362

Edward Thomson 2018-06-11T18:25:44

Merge pull request #4677 from libgit2/ethomson/memleaks Stop leaking the memory

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/stash/save.c b/tests/stash/save.c
index 5c2d494..8650dae 100644
--- a/tests/stash/save.c
+++ b/tests/stash/save.c
@@ -225,6 +225,8 @@ 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);
 }