diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-16 20:24:51 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-16 20:24:51 +0200 |
| commit | 038d2fc343192380bdb88047a1a2fdba8bd90255 (patch) | |
| tree | 6f737a36c25e52f6786474ced5e2f1676a86b16e | |
| parent | b2e361cc5e5965d01ef4c033a14ecb61c8523dae (diff) | |
| download | libgit2-038d2fc343192380bdb88047a1a2fdba8bd90255.tar.gz | |
Plug leaks in the repo discovery tests
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
| -rw-r--r-- | tests/t12-repo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/t12-repo.c b/tests/t12-repo.c index d4038696a..3447f2b22 100644 --- a/tests/t12-repo.c +++ b/tests/t12-repo.c @@ -355,6 +355,7 @@ BEGIN_TEST(discover0, "test discover") must_pass(git_repository_init(&repo, DISCOVER_FOLDER, 1)); must_pass(git_repository_discover(repository_path, sizeof(repository_path), DISCOVER_FOLDER, 0, ceiling_dirs)); + git_repository_free(repo); must_pass(git_repository_init(&repo, SUB_REPOSITORY_FOLDER, 0)); must_pass(gitfo_mkdir_recurs(SUB_REPOSITORY_FOLDER_SUB_SUB_SUB, mode)); @@ -402,6 +403,7 @@ BEGIN_TEST(discover0, "test discover") must_pass(ensure_repository_discover(REPOSITORY_ALTERNATE_FOLDER_SUB_SUB_SUB, ceiling_dirs, repository_path)); rmdir_recurs(DISCOVER_FOLDER); + git_repository_free(repo); END_TEST BEGIN_SUITE(repository) |
