]> git.99rst.org Git - git.git/commit
send-pack: clean up extra_have oid array
authorJacob Keller <redacted>
Fri, 27 Jun 2025 22:09:04 +0000 (15:09 -0700)
committerJunio C Hamano <redacted>
Fri, 27 Jun 2025 22:17:57 +0000 (15:17 -0700)
commitd1c44861f9c86ef3ff6e0614e423d86a2a41db4f
tree20e70bdc4ecc70c7e653e00499f0c2722a5f0c30
parentfbe8d3079d4a96aeb4e4529cc93cc0043b759a05
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/send-pack.c
git clone https://git.99rst.org/PROJECT