From c90ed5b5583ab62f31cca55f4d9ea4386600e2a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 18 Dec 2014 02:11:06 +0100 Subject: [PATCH] Plug leaks --- tests/index/tests.c | 2 ++ 1 file changed, 2 insertions(+) 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); }