aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-30 11:14:16 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-30 11:23:08 -0700
commit12f0fb953891940598486bdbe8edd28b05b38278 (patch)
tree12ebba8fd5e6b2a17a9e19a84ada4befd8eaa39f
parentpack-write: fix return parameter of `write_rev_file_order()` (diff)
downloadgit-12f0fb953891940598486bdbe8edd28b05b38278.tar.gz
git-12f0fb953891940598486bdbe8edd28b05b38278.zip
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>
-rw-r--r--t/helper/test-proc-receive.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/helper/test-proc-receive.c b/t/helper/test-proc-receive.c
index 29361c7aab..3703f734f3 100644
--- a/t/helper/test-proc-receive.c
+++ b/t/helper/test-proc-receive.c
@@ -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;
}