mirror of
https://github.com/git/git.git
synced 2026-01-11 21:33:13 +09:00
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:
parent
2f0ee051dd
commit
12f0fb9538
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user