mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 19:18:57 +00:00
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:
parent
038d2fc343
commit
3d5a02b653
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user