]> git.ipfire.org Git - thirdparty/git.git/commit
send-pack: fix leaking common object IDs
authorPatrick Steinhardt <ps@pks.im>
Thu, 5 Sep 2024 10:08:43 +0000 (12:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Sep 2024 15:49:10 +0000 (08:49 -0700)
commite03004f7f86a817af2b8d0752dfecac58e7d85e0
treedd9f36770139576ccbcafc1613f7af1359d181c2
parent63494913eced2f0993eb431ad236b03e6ee8cac2
send-pack: fix leaking common object IDs

We're leaking the array of common object IDs in `send_pack()`. Fix this
by creating a common exit path where we free the leaking data. While at
it, unify some other cleanups now that we have a central place to put
them.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
send-pack.c
t/t5549-fetch-push-http.sh