summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-06-16 20:30:40 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-06-16 20:30:40 +0200
commit3d5a02b653cfa07ffda7e136a94130e14935ee6f (patch)
tree6c937dd19180cfe4944e1c911424ed16d949a4a8
parent038d2fc343192380bdb88047a1a2fdba8bd90255 (diff)
downloadlibgit2-3d5a02b653cfa07ffda7e136a94130e14935ee6f.tar.gz
Plug an index leak
The test wasn't updated when repos lost ownership of indices Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
-rw-r--r--tests/t06-index.c1
1 files changed, 1 insertions, 0 deletions
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