diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-27 21:26:27 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-27 21:26:27 +0200 |
commit | fa399750c680aa254784a40193d73d373df5e3ea (patch) | |
tree | 323c8a96c3228c8be291d028b50c3483fda07395 /tests/diff/binary.c | |
parent | 92ec9ed328c4864e9c3fc27d0894b40060eb74e5 (diff) | |
parent | 24fa21f38e15b0c929cafb0c072e47708f18d663 (diff) | |
download | libgit2-fa399750c680aa254784a40193d73d373df5e3ea.tar.gz |
Merge pull request #3265 from libgit2/leaks
Plug a bunch of leaks
Diffstat (limited to 'tests/diff/binary.c')
-rw-r--r-- | tests/diff/binary.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/diff/binary.c b/tests/diff/binary.c index 2d532637c..5298e9ebb 100644 --- a/tests/diff/binary.c +++ b/tests/diff/binary.c @@ -4,6 +4,7 @@ #include "buffer.h" #include "filebuf.h" +#include "repository.h" static git_repository *repo; @@ -496,7 +497,7 @@ void test_diff_binary__blob_to_blob(void) opts.id_abbrev = GIT_OID_HEXSZ; repo = cl_git_sandbox_init("renames"); - cl_git_pass(git_repository_index(&index, repo)); + cl_git_pass(git_repository_index__weakptr(&index, repo)); cl_git_append2file("renames/untimely.txt", "Oh that crazy Kipling!\r\n"); cl_git_pass(git_index_add_bypath(index, "untimely.txt")); @@ -531,4 +532,7 @@ void test_diff_binary__blob_to_blob(void) git__free(diff_data.old_path); git__free(diff_data.new_path); + + git_buf_free(&diff_data.old_binary_base85); + git_buf_free(&diff_data.new_binary_base85); } |