summaryrefslogtreecommitdiff
path: root/tests/index/tests.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-12-18 02:11:06 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-12-18 02:11:06 +0100
commitc90ed5b5583ab62f31cca55f4d9ea4386600e2a3 (patch)
treea730a0e2839f24e1c652edb1671a29f22fa43922 /tests/index/tests.c
parentc679bf42f53cd792c03c3d3b30d5e04901be6ede (diff)
downloadlibgit2-c90ed5b5583ab62f31cca55f4d9ea4386600e2a3.tar.gz
Plug leaks
Diffstat (limited to 'tests/index/tests.c')
-rw-r--r--tests/index/tests.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/index/tests.c b/tests/index/tests.c
index 6a751e71f..d0372f169 100644
--- a/tests/index/tests.c
+++ b/tests/index/tests.c
@@ -325,6 +325,7 @@ static void add_invalid_filename(git_repository *repo, const char *fn)
cl_assert(git_index_entrycount(index) == 0);
+ git_buf_free(&path);
git_index_free(index);
}
@@ -399,6 +400,7 @@ static void write_invalid_filename(git_repository *repo, const char *fn_orig)
p_unlink(path.ptr);
cl_git_pass(git_index_remove_all(index, NULL, NULL, NULL));
+ git_buf_free(&path);
git_index_free(index);
git__free(fn);
}