Commit 3d5a02b6 by Carlos Martín Nieto

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>
parent 038d2fc3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment