From 3d5a02b653cfa07ffda7e136a94130e14935ee6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 16 Jun 2011 20:30:40 +0200 Subject: [PATCH] Plug an index leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test wasn't updated when repos lost ownership of indices Signed-off-by: Carlos Martín Nieto --- tests/t06-index.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/t06-index.c b/tests/t06-index.c index 51f89363e..27819c02a 100644 --- a/tests/t06-index.c +++ b/tests/t06-index.c @@ -208,6 +208,7 @@ BEGIN_TEST(add0, "add a new file to the index") /* And the built-in hashing mechanism worked as expected */ must_be_true(git_oid_cmp(&id1, &entry->oid) == 0); + git_index_free(index); git_repository_free(repo); rmdir_recurs(TEMP_REPO_FOLDER); END_TEST