diff options
| author | Jacob Keller <jacob.keller@gmail.com> | 2025-06-27 15:09:04 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-27 15:17:57 -0700 |
| commit | d1c44861f9c86ef3ff6e0614e423d86a2a41db4f (patch) | |
| tree | 20e70bdc4ecc70c7e653e00499f0c2722a5f0c30 /builtin/send-pack.c | |
| parent | Git 2.48 (diff) | |
| download | git-d1c44861f9c86ef3ff6e0614e423d86a2a41db4f.tar.gz git-d1c44861f9c86ef3ff6e0614e423d86a2a41db4f.zip | |
send-pack: clean up extra_have oid array
Commit c8009635785e ("fetch-pack, send-pack: clean up shallow oid
array", 2024-09-25) cleaned up the shallow oid array in cmd_send_pack,
but didn't clean up extra_have, which is still leaked at program exit.
I suspect the particular tests in t5539 don't trigger any additions to
the extra_have array, which explains why the tests can pass leak free
despite this gap.
Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/send-pack.c')
| -rw-r--r-- | builtin/send-pack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/send-pack.c b/builtin/send-pack.c index 59b626aae8..b28da7ddd7 100644 --- a/builtin/send-pack.c +++ b/builtin/send-pack.c @@ -344,6 +344,7 @@ int cmd_send_pack(int argc, free_refs(remote_refs); free_refs(local_refs); refspec_clear(&rs); + oid_array_clear(&extra_have); oid_array_clear(&shallow); clear_cas_option(&cas); return ret; |
