t/helper: fix leaks in proc-receive helper

Fix trivial leaks in the proc-receive helpe.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Patrick Steinhardt 2024-09-30 11:14:16 +02:00 committed by Junio C Hamano
parent 2f0ee051dd
commit 12f0fb9538

View File

@ -196,5 +196,12 @@ int cmd__proc_receive(int argc, const char **argv)
packet_flush(1);
sigchain_pop(SIGPIPE);
while (commands) {
struct command *next = commands->next;
free(commands);
commands = next;
}
string_list_clear(&push_options, 0);
return 0;
}