diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-09-30 11:13:40 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-30 11:23:05 -0700 |
| commit | 58888c0401a43bfe2953b0508b5f1bd6c3f32b89 (patch) | |
| tree | 5761b94e5ab3140a5f091cec31c251abc4643b0f /t/helper/test-partial-clone.c | |
| parent | 6361dea6e8f4476b495319a9d3eeed2e2e694f8a (diff) | |
| download | git-58888c0401a43bfe2953b0508b5f1bd6c3f32b89.tar.gz | |
t/helper: fix leaking repository in partial-clone helper
We initialize but never clear a repository in the partial-clone test
helper. Plug this leak.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-partial-clone.c')
| -rw-r--r-- | t/helper/test-partial-clone.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/helper/test-partial-clone.c b/t/helper/test-partial-clone.c index 0ead529167..a1af9710c3 100644 --- a/t/helper/test-partial-clone.c +++ b/t/helper/test-partial-clone.c @@ -26,6 +26,8 @@ static void object_info(const char *gitdir, const char *oid_hex) if (oid_object_info_extended(&r, &oid, &oi, 0)) die("could not obtain object info"); printf("%d\n", (int) size); + + repo_clear(&r); } int cmd__partial_clone(int argc, const char **argv) |
