builtin/ls-remote: plug leaking server options
commit5f5dd8e297b59f3f7bf61098e978a91c5581388a
authorPatrick Steinhardt <ps@pks.im>
Tue, 5 Nov 2024 06:16:43 +0000 (5 07:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Nov 2024 06:37:51 +0000 (4 22:37 -0800)
treee3954691d44373f15974870ce362e65d04e83928
parent34b6ce9b30747131b6e781ff718a45328aa887d0
builtin/ls-remote: plug leaking server options

The list of server options populated via `OPT_STRING_LIST()` is never
cleared, causing a memory leak. Plug it.

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

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