]> git.ipfire.org Git - thirdparty/git.git/commit
remote: fix leaking config strings
authorPatrick Steinhardt <ps@pks.im>
Thu, 22 Aug 2024 09:17:55 +0000 (11:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Aug 2024 16:18:06 +0000 (09:18 -0700)
commitf5ccb535ccfbabd55c2c7ab0b8e36ca5f322d31f
treec6df1bb64bc36fa331a22e4d3a0ccde14e9d979c
parent46e440694f09e4cb23c8bba6cd49cc035df6ce99
remote: fix leaking config strings

We're leaking several config strings when assembling remotes, either
because we do not free preceding values in case a config was set
multiple times, or because we do not free them when releasing the remote
state. This includes config strings for "branch" sections, "insteadOf",
"pushInsteadOf", and "pushDefault".

Plug those leaks.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c