diff options
author | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2013-03-06 22:51:20 +0100 |
---|---|---|
committer | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2013-03-06 22:51:20 +0100 |
commit | aa518c709c8caa6577822e073e7f27733eb6aaa3 (patch) | |
tree | 105863c42a7b0bc266af2332036ada7a9f22a76e /tests-clar/notes/notes.c | |
parent | f7b18502154edac242ab3760feb05600e09d67b3 (diff) | |
download | libgit2-aa518c709c8caa6577822e073e7f27733eb6aaa3.tar.gz |
added missing free for git_note in clar tests
Diffstat (limited to 'tests-clar/notes/notes.c')
-rw-r--r-- | tests-clar/notes/notes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests-clar/notes/notes.c b/tests-clar/notes/notes.c index 40fa0db27..82dcaf8ca 100644 --- a/tests-clar/notes/notes.c +++ b/tests-clar/notes/notes.c @@ -341,6 +341,7 @@ void test_notes_notes__can_iterate_default_namespace(void) for (i = 0; (err = git_note_next(¬e_id, &annotated_id, iter)) >= 0; ++i) { cl_git_pass(git_note_read(¬e, _repo, NULL, &annotated_id)); cl_assert_equal_s(git_note_message(note), note_message[i]); + git_note_free(note); } cl_assert_equal_i(GIT_ITEROVER, err); @@ -370,6 +371,7 @@ void test_notes_notes__can_iterate_custom_namespace(void) for (i = 0; (err = git_note_next(¬e_id, &annotated_id, iter)) >= 0; ++i) { cl_git_pass(git_note_read(¬e, _repo, "refs/notes/beer", &annotated_id)); cl_assert_equal_s(git_note_message(note), note_message[i]); + git_note_free(note); } cl_assert_equal_i(GIT_ITEROVER, err); |