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>
This commit is contained in:
Carlos Martín Nieto 2011-06-16 20:30:40 +02:00
parent 038d2fc343
commit 3d5a02b653

View File

@ -208,6 +208,7 @@ BEGIN_TEST(add0, "add a new file to the index")
/* And the built-in hashing mechanism worked as expected */ /* And the built-in hashing mechanism worked as expected */
must_be_true(git_oid_cmp(&id1, &entry->oid) == 0); must_be_true(git_oid_cmp(&id1, &entry->oid) == 0);
git_index_free(index);
git_repository_free(repo); git_repository_free(repo);
rmdir_recurs(TEMP_REPO_FOLDER); rmdir_recurs(TEMP_REPO_FOLDER);
END_TEST END_TEST