]> git.ipfire.org Git - thirdparty/git.git/commit
send-pack: clean up extra_have oid array
authorJacob Keller <jacob.keller@gmail.com>
Fri, 27 Jun 2025 22:09:04 +0000 (15:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
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 <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/send-pack.c