Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-04-20 18:20:21 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2013-04-20 18:20:33 +0400
commit8f24e65ff6f7573bc6778f5bbea7119fc9b7b626 (patch)
tree1801b707949d878922249c4fbfed71b93fb0e64d /tests-clar/stash
parentcf97799ed31ebb8cc4d44f7fd6ff86a5bc1b2e8b (diff)
Plug a couple of leaks
Diffstat (limited to 'tests-clar/stash')
-rw-r--r--tests-clar/stash/drop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests-clar/stash/drop.c b/tests-clar/stash/drop.c
index 12f922630..60b3c72e0 100644
--- a/tests-clar/stash/drop.c
+++ b/tests-clar/stash/drop.c
@@ -146,6 +146,8 @@ void retrieve_top_stash_id(git_oid *out)
cl_git_pass(git_reference_name_to_id(out, repo, GIT_REFS_STASH_FILE));
cl_assert_equal_i(true, git_oid_cmp(out, git_object_id(top_stash)) == 0);
+
+ git_object_free(top_stash);
}
void test_stash_drop__dropping_the_top_stash_updates_the_stash_reference(void)
@@ -165,4 +167,6 @@ void test_stash_drop__dropping_the_top_stash_updates_the_stash_reference(void)
retrieve_top_stash_id(&oid);
cl_git_pass(git_oid_cmp(&oid, git_object_id(next_top_stash)));
+
+ git_object_free(next_top_stash);
}