summaryrefslogtreecommitdiff
path: root/t/helper/test-proc-receive.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-proc-receive.c')
-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;
}