]> git.ipfire.org Git - thirdparty/git.git/commit
http-fetch: clear leaking git-index-pack(1) arguments
authorPatrick Steinhardt <ps@pks.im>
Tue, 24 Sep 2024 21:50:09 +0000 (17:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Sep 2024 17:24:52 +0000 (10:24 -0700)
commit2ccf570efeb673a28f6f84c749238b33aa1be688
treef723c28ffdc406e60a8d641a48842630dfb1228f
parent6258f68c3c1092c901337895c864073dcdea9213
http-fetch: clear leaking git-index-pack(1) arguments

We never clear the arguments that we pass to git-index-pack(1). Create a
common exit path and release them there to plug this leak.

This is leak is exposed by t5702, but plugging the leak does not make
the whole test suite pass.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-fetch.c