]> git.ipfire.org Git - thirdparty/git.git/commit
scalar: fix leaking repositories
authorPatrick Steinhardt <ps@pks.im>
Mon, 30 Sep 2024 09:13:15 +0000 (11:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Sep 2024 18:23:02 +0000 (11:23 -0700)
commitd607bd88161d1826adc236bf7cf758e754becd61
tree50d512369413a1b9db37274624f4371217e12f7c
parenta69d120c077ce4e3f6164e23d41147370a0d687a
scalar: fix leaking repositories

In the scalar code we iterate through multiple repositories,
initializing each of them. We never clear them though, causing memory
leaks. Plug them.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
scalar.c
t/t9210-scalar.sh
t/t9211-scalar-clone.sh