diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-05-20 08:29:51 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-05-20 08:29:51 +0200 |
commit | 430866d28cca5e1c04ca5e65dc0f66ae00a2f288 (patch) | |
tree | a7270dcfeab2e03ee52c1edf1f12de79c9b81240 | |
parent | 588a43af543f9a00345a6e464a61c51aebad88da (diff) | |
download | libgit2-430866d28cca5e1c04ca5e65dc0f66ae00a2f288.tar.gz |
Fix a leak in the tests
-rw-r--r-- | tests/odb/foreach.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/odb/foreach.c b/tests/odb/foreach.c index ab3808b00..56daf7574 100644 --- a/tests/odb/foreach.c +++ b/tests/odb/foreach.c @@ -93,8 +93,8 @@ void test_odb_foreach__files_in_objects_dir(void) cl_git_pass(git_repository_open(&repo, "testrepo.git")); cl_git_pass(git_buf_printf(&buf, "%s/objects/somefile", git_repository_path(repo))); - cl_git_mkfile(buf.ptr, ""); + git_buf_free(&buf); cl_git_pass(git_repository_odb(&odb, repo)); cl_git_pass(git_odb_foreach(odb, foreach_cb, &nobj)); |