diff options
author | Michael Schubert <schu@schu.io> | 2012-06-20 18:06:37 +0200 |
---|---|---|
committer | Michael Schubert <schu@schu.io> | 2012-06-21 10:33:24 +0200 |
commit | dca6b228d1725ce9ce7b940a172770f0e58b76cd (patch) | |
tree | a28e9e306d37ad423711c1cfe8270081b843c13c /tests-clar/notes/notes.c | |
parent | 9311423c34bbd369928152c6a2b669204276ddd1 (diff) | |
download | libgit2-dca6b228d1725ce9ce7b940a172770f0e58b76cd.tar.gz |
notes: fix memory leaks
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 5f7f5a9c3..e1387782e 100644 --- a/tests-clar/notes/notes.c +++ b/tests-clar/notes/notes.c @@ -23,6 +23,8 @@ static void assert_note_equal(git_note *note, char *message, git_oid *note_oid) cl_git_pass(git_blob_lookup(&blob, _repo, note_oid)); cl_assert_equal_s(git_note_message(note), (const char *)git_blob_rawcontent(blob)); + + git_blob_free(blob); } static void create_note(git_oid *note_oid, const char *canonical_namespace, const char *target_sha, const char *message) |